When the game starts, replace the back button on the navigation item with your
own 'quit' button, or remove it totally and put a quit button on the
right-hand-side of the navigation bar instead. This can be quite a nice way to
show you are no longer just 'navigating' but you are now in a different state
of 'playing'. Since it's your own button you can get the action message from
it, pause the game, pop up your 'do you want to quit?' sheet and do the
necessary.
If you look at some other applications you'll see they do this kind of thing
when you go into edit mode or similar. When just navigating, the left button is
Back and the right button is Edit, when you hit Edit, the left button becomes
Cancel and the right button Done. As well as showing what mode you're in and
being clear about it, it prevents you going back until you actually get out of
edit mode.
Something like that work for you?
On Mar 13, 2012, at 9:27 AM, Rick Mann wrote:
> So, googling suggests I can't do this. I'm rather surprised. In my case, I
> want to have the user verify they're about to resign the game they're playing
> if they go back.
>
> I can't set the nav bar delegate, which is what I need to do. I can subclass
> UINavigationController to ask my top view if it can be popped, but I wanted
> to verify there wasn't a cleaner way to do this already.
>
> Thanks,
> Rick
>
>
> _______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
>
> This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]