Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Michael Crawford
My iOS App includes some simple file management, that enables the user to save the state of their game as well as to exchange the game states with other people. I have a sheet that looks like this: Title: File Management Destructive Option: Delete File Open Save I also specify a

Re: Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Mike Abdullah
On 25 Apr 2015, at 15:06, Michael Crawford mdcrawf...@gmail.com wrote: On 4/25/15, Roland King r...@rols.org wrote: There are delegate methods for UIActionSheet and UIAlertView which tell you when the animation has finished. xxx:didDismissWithButtonIndex: You Da Man. I am closer to

Re: Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Roland King
On 25 Apr 2015, at 21:30, Michael Crawford mdcrawf...@gmail.com wrote: On 4/25/15, Mike Abdullah mabdul...@karelia.com wrote: Apple's APIs here are deliberately asynchronous. You need to make your code handle that properly. Don't try to force it to be synchronous. Some things need to be

Re: Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Michael Crawford
I was running on an iPad. When I switched to the iPad 2 simulator, I could enable Guard Malloc. With guard malloc an assert is tripped over a retain count that, at that point, should be 1. I expect I have an errant pointer elsewhere in my code. I know how to track such things down. I'm not

Re: Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Roland King
I think the problem is that I need to be certain that the action sheet is all the way dismissed before I show the alert. I think that's what all the stuff about runloops was in my previous question, that didn't make sense to anyone. I got that from Erica Sadun's iPhone Developer's

Re: Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Michael Crawford
On 4/25/15, Roland King r...@rols.org wrote: There are delegate methods for UIActionSheet and UIAlertView which tell you when the animation has finished. xxx:didDismissWithButtonIndex: You Da Man. I am closer to understanding why this is not working. my call to [alertView show] returns

Re: Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Mike Abdullah
On 25 Apr 2015, at 15:30, Michael Crawford mdcrawf...@gmail.com wrote: On 4/25/15, Mike Abdullah mabdul...@karelia.com wrote: Apple's APIs here are deliberately asynchronous. You need to make your code handle that properly. Don't try to force it to be synchronous. Some things need to be

Re: Display a UIAlertView after dismissing an action sheet?

2015-04-25 Thread Michael Crawford
On 4/25/15, Mike Abdullah mabdul...@karelia.com wrote: Apple's APIs here are deliberately asynchronous. You need to make your code handle that properly. Don't try to force it to be synchronous. Some things need to be synchronous though. If I'm saving a file, I don't want to do anything else