Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-06-2010, 01:33 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 1
matt78705 is on a distinguished road
Default iOS 4 app flickers and crashes when returning from background mode

I just converted an iPhone OS 3 app to iOS 4, and once in a while, the screen will flicker and then turn black when the app returns from background mode. Has anyone else experienced this?

Others have suggested that the app could be responding in a funky manner to memory warnings, which sounds plausible. However, I put a break point in every single didReceiveMemoryWarning method, and none of these break points are touched while debugging.

Any advice would be great. Thanks.
matt78705 is offline   Reply With Quote
Old 08-06-2010, 01:37 AM   #2 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 386
SoulRed12 is on a distinguished road
Default

Quote:
Originally Posted by matt78705 View Post
I just converted an iPhone OS 3 app to iOS 4, and once in a while, the screen will flicker and then turn black when the app returns from background mode. Has anyone else experienced this?

Others have suggested that the app could be responding in a funky manner to memory warnings, which sounds plausible. However, I put a break point in every single didReceiveMemoryWarning method, and none of these break points are touched while debugging.

Any advice would be great. Thanks.
I've gotten this before. My problem was that I had a cached UIImage that I loaded with UIImage +imageNamed and forgot to retain -- it stayed active because it got stored in the cache, but apparently, going to the background seemed to "clear" it, so when I came back from the background my code ended up trying to use something that wasn't there anymore. I just had to add a retain after loading the image, and it was fixed (with no leaks reported by instruments).

I dunno if this is anywhere near your problem, but you asked if anyone else has experienced a similar issue.
SoulRed12 is offline   Reply With Quote
Reply

Bookmarks

Tags
background, ios 4, iphone, multitasking

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 307
11 members and 296 guests
alexP, arash5500, gordo26, HemiMG, linkmx, mediaspree, nobstudio, Objective Zero, Sloshmonster, stanny, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:28 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0