You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OnboardingContentViewController *firstPage = [OnboardingContentViewController contentWithTitle:@"What A Beautiful Photo"body:@"This city background image is so beautiful."image:[UIImage imageNamed:@"blue"] buttonText:@"Enable Location Services"action:^{
73
70
[[[UIAlertView alloc] initWithTitle:nilmessage:@"Here you can prompt users for various application permissions, providing them useful information about why you'd like those permissions to enhance their experience, increasing your chances they will grant those permissions."delegate:nilcancelButtonTitle:@"OK"otherButtonTitles:nil] show];
OnboardingContentViewController *firstPage = [[OnboardingContentViewController alloc] initWithTitle:@"Everything Under The Sun"body:@"The temperature of the photosphere is over 10,000°F."image:nilbuttonText:nilaction:nil];
OnboardingContentViewController *secondPage = [[OnboardingContentViewController alloc] initWithTitle:@"Every Second"body:@"600 million tons of protons are converted into helium atoms."image:nilbuttonText:nilaction:nil];
OnboardingContentViewController *thirdPage = [[OnboardingContentViewController alloc] initWithTitle:@"We're All Star Stuff"body:@"Our very bodies consist of the same chemical elements found in the most distant nebulae, and our activities are guided by the same universal rules."image:nilbuttonText:@"Explore the universe"action:^{
OnboardingContentViewController *firstPage = [[OnboardingContentViewController alloc] initWithTitle:@"It's one small step for a man..."body:@"The first man on the moon, Buzz Aldrin, only had one photo taken of him while on the lunar surface due to an unexpected call from Dick Nixon."image:[UIImage imageNamed:@"space1"] buttonText:nilaction:nil];
151
-
firstPage.bodyFontSize = 25;
152
-
153
-
OnboardingContentViewController *secondPage = [[OnboardingContentViewController alloc] initWithTitle:@"The Drake Equation"body:@"In 1961, Frank Drake proposed a probabilistic formula to help estimate the number of potential active and radio-capable extraterrestrial civilizations in the Milky Way Galaxy."image:[UIImage imageNamed:@"space2"] buttonText:nilaction:nil];
154
-
secondPage.bodyFontSize = 24;
155
-
156
-
OnboardingContentViewController *thirdPage = [[OnboardingContentViewController alloc] initWithTitle:@"Cold Welding"body:@"Two pieces of metal without any coating on them will form into one piece in the vacuum of space."image:[UIImage imageNamed:@"space3"] buttonText:nilaction:nil];
157
-
158
-
OnboardingContentViewController *fourthPage = [[OnboardingContentViewController alloc] initWithTitle:@"Goodnight Moon"body:@"Every year the moon moves about 3.8cm further away from the Earth."image:[UIImage imageNamed:@"space4"] buttonText:@"See Ya Later!"action:nil];
OnboardingContentViewController *firstPage = [[OnboardingContentViewController alloc] initWithTitle:@"\"If you can't explain it simply, you don't know it well enough.\""body:@" - Einsten"image:[UIImage imageNamed:@""] buttonText:nilaction:nil];
168
-
169
-
OnboardingContentViewController *secondPage = [[OnboardingContentViewController alloc] initWithTitle:@"\"If you wish to make an apple pie from scratch, you must first invent the universe.\""body:@" - Sagan"image:nilbuttonText:nilaction:nil];
170
-
secondPage.topPadding = 0;
171
-
172
-
OnboardingContentViewController *thirdPage = [[OnboardingContentViewController alloc] initWithTitle:@"\"That which can be asserted without evidence, can be dismissed without evidence.\""body:@" - Hitchens"image:nilbuttonText:nilaction:nil];
173
-
thirdPage.titleFontSize = 33;
174
-
thirdPage.bodyFontSize = 25;
175
-
176
-
OnboardingContentViewController *fourthPage = [[OnboardingContentViewController alloc] initWithTitle:@"\"Scientists have become the bearers of the torch of discovery in our quest for knowledge.\""body:@" - Hawking"image:nilbuttonText:nilaction:nil];
Copy file name to clipboardexpand all lines: README.md
+1-5
Original file line number
Diff line number
Diff line change
@@ -75,13 +75,9 @@ With only a few lines of code you have a beautiful, end-to-end onboarding proces
75
75
Customization
76
76
=============
77
77
78
-
The content pages can be customized by setting the provided padding, font, and size properties on either the pages individually (if you want something different on each) or on the OnboardingViewController itself, which will pass those properties to all of the content view controllers.
78
+
The `iconImageView`, `titleLabel`, `bodyLabel`, and `actionButton` properties are exposed for customizing fonts, sizing, etc., and the spacing between elements on the content pages can be customized as well:
0 commit comments