iOS NavBar 'back' button event

2 posts / 0 new
Last post
Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:
iOS NavBar 'back' button event

Hey, in iOS there is a NavBar native widget. This can have a back button on it, which if pressed, pops the current screen off the stack screen and shows the old screen. My problem is that I don't get any event if this happens. If I need to update my screen again before it is shown, then I don't have an event to capture or a method call I can use to know that my screen is going to be shown.

With Android, if the user presses the back button on the handset, then a keyPressEvent is triggered, but I con't find an equivalent method on iOS.

Is it hard?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Iraklis Rossis
Iraklis Rossis's picture
Offline
Mobile Wizard
Joined: 3 Aug 2011
Posts:

Hey Sam,

It should send a MAW_EVENT_STACK_SCREEN_POPPED event. Or you can use the StackScreenListener if you are using the C++ libs.