PDA

View Full Version : UIImagePickerController'view display nothing except a cancel button




jinhaogxy
Nov 5, 2008, 03:46 AM
hi, everyone,
I have a very oddball thing. I used UIImagePickerController in my app, I choosed one photos ,show it and do something with image, then go back subviews of photos to select other photo. sometimes when I do that many times and go to first screen that show the category of all photos, there display nothing except cancel button on navigation bar, if somebody can give some advice , I will grateful for that. Thanks.



jnic
Nov 5, 2008, 08:20 AM
The iPhone UI tends to have redraw issues when it starts running low on memory.

Since you say that generating this bug entails going back and forth many times to subviews of photos, you might want to check whether you're receiving memory warnings due to allocating many UIImages, and if so whether releasing them fixes the problem.

jinhaogxy
Nov 6, 2008, 12:58 AM
Thanks for your reply, I have checked it, and there were no memory leaks except when I allocation memory for UIImagePickerController which add to window as Application did finish launch, but I have release the UIImagePickerController object in dealloc function.