OnboardingPage
@objcMembers
public final class OnboardingPage : UIView
Custom view to easily create onboarding pages which can then be used in OnboardingViewController
.
Simply pass an image and a name. Both will be beautifully aligned and displayed to the user.
Note
The text length should not exceed 50 characters, depending on the font used, and should preferably stretch out over three lines.-
Designated initializer for the
OnboardingPage
class which allows to create a custom onboarding page just by passing an image and a text. The text will be displayed underneath the image.Declaration
Swift
public init(image: UIImage, text: String, rotateImageInLandscape: Bool = false)
Parameters
image
The image to be displayed.
text
The text to be displayed underneath the image.
Return Value
A simple custom view to be displayed in the onboarding.
-
Convenience initializer for the
OnboardingPage
class which allows to create a custom onboarding page simply by passing an image name and a text. The text will be displayed underneath the image.Declaration
Swift
public convenience init?(imageNamed imageName: String, text: String, rotateImageInLandscape: Bool = false)
Parameters
imageName
The name of the image to be displayed.
text
The text to be displayed underneath the image.
Return Value
A simple custom view to be displayed in the onboarding or
nil
when no image with the given name could be found. -
Returns an object initialized from data in a given unarchiver.
Warning
Not implemented.Declaration
Swift
public required init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
public override func layoutSubviews()