Hi,
I have developed an iPhone app where there are four tab bar items and if i press the last TabBar the application should terminate. How to do it in Interface Builder?
Hi,
I have developed an iPhone app where there are four tab bar items and if i press the last TabBar the application should terminate. How to do it in Interface Builder?
Terminating the app must involve code. It can’t be done simply in IB. And there’s no documented and clean way to quit the app besides exit(0)
, see one of the previous questions on this topic.
In the action you can write "[[UIApplication sharedApplication] terminateWithSuccess];" And in the head file you add "@interface UIApplication (extended) -(void) terminateWithSuccess; @end"