Re: The use of UIActionSheet mysteriously disables our app with a white screen after memory warning.
Re: The use of UIActionSheet mysteriously disables our app with a white screen after memory warning.
- Subject: Re: The use of UIActionSheet mysteriously disables our app with a white screen after memory warning.
- From: Roland King <email@hidden>
- Date: Sat, 17 Mar 2012 12:45:19 +0800
I think chances are you are still somehow calling a method on a view controller or similar which has been evicted. Why that's the case with UIActionSheet and not something else, I can't say. I was pretty careful in my project to ensure I called methods only on view controllers with loaded views and also that all dismiss methods were sent to 'presentingViewController' and not self, I never liked that hack where sending to self forwards it properly because I've had trouble with it. I used viewWillAppear and viewDidAppear on the root view controllers to do any work which I had left to do, by then the view is guaranteed to be loaded.
Sent you the project. Seriously the storyboard makes no difference, just makes it easier to write the code, it does the exact same thing, just makes the view controllers and calls present../dismiss.. etc on them, it just saved me having to hook up a load of buttons to custom methods to do the exact same thing and made the example way smaller. The janky/non-janky static is at the top of TAViewController.m, you can change that to get a different effect on popping the modal.
Good luck, I hope you find it.
On Mar 17, 2012, at 12:29 PM, G S wrote:
> On Fri, Mar 16, 2012 at 7:53 PM, Roland King <email@hidden> wrote:
> You've sure had a lot of problems with this!
>
> Yeah, this is ridiculous. Researching it, I found that Instagram had the same white-screen problem for a while. Unfortunately, I've found no way to contact them.
>
> There's clearly something wrong when the underlying view controller never gets a "viewWillAppear" call.
>
> I really appreciate your creating the project, so sure, send it over. However, I don't use storyboards, so that's a condition that may be significant.
>
> I haven't even bothered filing this yet because they'll want a project that demonstrates it and I don't have time to create one right now. But we're about to submit our app, so I'll tackle this thing next.
>
> Again, thanks a lot for your time on this. Very cool.
>
> Gavin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden