views:

20

answers:

1

it happens only on the 3GS, 4 or 3G is OK.

seems like viewcontroller got called everytime camera dismissed.

any thoughts on that?

It's Iphone, the system calls viewdidunload my view of viewcontroller when I did a

[self presentModalViewController:picker1 animated:YES];

I don't want the system to dismiss my view. I did a [self.view retain] but that doesn't help.

A: 

viewDidLoad can be called multiple times. If the iPhone needs memory, it will release the view and then rebuild it the next time it has to show it. This is normal -- you cannot count on only a single call. You should get a viewDidUnload call before it's called again.

Lou Franco
I try to retain the view of the viewcontroller by [self.view retain];but when camera presentmodalview the system calls viewdidunload. How can I prevent the view of viewcontroller from taken out?