开发者

Everytime Camera dismiss, Viewdidload got called

开发者 https://www.devze.com 2023-01-20 16:59 出处:网络
it happens only on the 3GS, 4 or 3G is OK. seems l开发者_开发百科ike viewcontroller got called everytime camera dismissed.

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

seems l开发者_开发百科ike 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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号