I have 10 different pages built into a slider control in my app, these pages are setup using storyboards.
The only difference on each page is a different web view to display rich text and a different image as a background are used.
Is it possible for me to have one view controller for all 10 pages and setup some flags in the constructor which would be executed on every page when its loaded to tell it what image and web view to show? If so what would this look like?
Thanks,
Lewis.
You can create subclass of UIViewController, for example MyViewController.
And then replace your .h file with:
And your .m file with:
And then just create an instances of your UIViewController subclass: