Sunday, August 16, 2009

UIImageView

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];

}

Hello World!

I have recently had the opportunity to start learning Iphone development and decided It would be great to post all my noob mistakes, and how I overcame them. I wish I had started this earlier because there is so much I have done wrong and so much I have learned. I just hope this recourse becomes useful to others whom are new to this exciting field.