mamaral / Onboard

An iOS framework to easily create a beautiful and engaging onboarding experience with only a few lines of code.
MIT License
6.46k stars 765 forks source link

How do I make a button global? #140

Open greynguyen opened 8 years ago

greynguyen commented 8 years ago

I want to make a log in button that appears on all pages. I don't want it to slide from the same button to the other.

In other words, how do I make it so that the button does not swipe with the rest of the page?

mamaral commented 8 years ago

You could try subclassing OnboardViewController and putting the button there, as that is the container that holds all of the content view controllers. The pageControl property on OnboardViewController is a subview that is static above all of the content as it scrolls, so you could reference that and see how that's handled.

greynguyen commented 8 years ago

I actually don't know objective-C, do you mind showing me how I would go about adding those changes? Thanks!