开发者

iOS4 breaks my app

On all iPhones (we checked) which have been updated to iOS4, our app is behaving differently (buggy) than on previous OS version (3.1.3). First and most biggest problem is that on 3G (but not on 3GS), any UIAlertView freezes the app - actually it looks like that app losses focus to give it to UIAlertView, but UIAlertView doesn't get the focus either. I have to note that my app is using OpenGL ES 1.1.

Other bugs look like some variables get different initial settings. For example, color picker starts with yellow color instead black, multitouch counter gives wrong resu开发者_如何学Pythonlts, etc...

Even this freezes the app:

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"Please read help before using Facebook/Twitter/Flickr" 
                                               delegate:self 
                                      cancelButtonTitle:@"OK" 
                                      otherButtonTitles:nil, nil]; 
[alert show]; 
[alert release];

Anyone having any idea?

Edit: Just wanted to inform you that we fixed all issues. Some troubles were found while carefully inspecting our code and finding stuff we did wrong. In iOS3 the same bugs waren't noticable because OS itself is more faster, but crippled app to death in iOS4. Also some variables needed to be initalized to default value (example - int x = 0; instead int x;) and then things started to work as expected.


As trite as it sounds, check your memory management carefully. As the frameworks evolve significantly between major releases, any latent memory management problems in your code might likely be the source of such weirdness.


I would think that one 'nil' would do the job for 'otherButtonTitles'. Could the second one be causing the crash?

If not, what errors are being reported on your console at the time of crash?


We found that iOS 4 is much, much more aggressive on memory management issues when compared to iOS 3. This makes a lot of sense from a design perspective as Apple now has to worry about a large number of applications potentially operating at the same time. We had a large number crash bugs caused by poor memory management that didn't show at all in iOS 3.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜