UIPageViewController: How to refer the UIPicker selected Value from 1 Viewcontroller to another...
Posted
by
Abhinav
on Stack Overflow
See other posts from Stack Overflow
or by Abhinav
Published on 2012-07-09T07:48:57Z
Indexed on
2012/07/09
9:15 UTC
Read the original article
Hit count: 235
I am referring the code from here, please have look at the code while answering my question :
http://www.ioslearner.com/wp-content/uploads/2011/12/UIPageViewControllerDemo.zip
important notes and few changes:
I basically have a viewcontroller and contentviewcontroller .
ViewController - have following
- UIPAgeViewController Datasource and Deligate
- UIPickerView - upon next and previous page turn the value in the PickerView changes
contentviewcontroller - has following
UIWebview - defined in Viewdidload of contentviewcontroller which dynamically fetches a html page based upon the string value (LabelContents) sent through following method
-(UIViewController *)pageViewController:(UIPageViewController *)pageViewController viewControllerBeforeViewController:(UIViewController *)viewController
is there a way to populate the UIWebview in contentviewcontroller based upon the row selected in UIPickerView ?
Kindly help.
© Stack Overflow or respective owner