I’m trying to learn the basics of iOS programming and I was wondering how you would use a page control using Xcode 4.2 and storyboard? I’m subscribed to MyCodeTeacher.com and the lesson on Page Controllers is outdated and doesn’t work with the new Xcode. I cant find a tutorial via Google and the Apple Documentation isn’t helping either.
Can someone point me to a good tutorial or give me a basic example?
Thank you SO much!
Ok here is a workflow for a typical case:
1.Create an IBOutlet for your pageControl object
Example:
2.Create an IBAction as well for the “Value Changed” event of the same pageControl
Example:
Every time the user changes the page now, your pageDidChange: method will be fired.
Now, here are some common methods:
Setup the number of pages
[self.pageControl setNumberOfPages:6];Set the current page
[self.pageControl setCurrentPage:1];I hope that this will get you started…