Currently my app lets you navigate some Tableviews to get to a UIScrollview with a UIImageview in it, that is interactive. Now my problem is when I navigate back to my Tableview from my Imageview and then pull up what should be another image, and it is still the same one. One problem I have found is that the viewDidLoad method of my ImageViewController.m file is not called upon the second launch of the controller.
Edit 8/22
I finally figured it out. Instead of relying on the viewDidLoad method, which is only fired once, when the view is first called into action. I instead used the viewWillAppear method. Now at first I had a problem making this method fire. But what was needed was for it to be called in all of my viewControllers. So I added this method too all the view controllers used in my navigation, then took everything out of my viewDidLoad method and put it into the viewWillAppear method.
-(void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment