Code for terminating application on button click ( in iPhone )
I need code for terminating the application on a button click but termination should be done with basic animation....Can anyone suggest?
I tried with exit(0) and also by using
[[UIApplication sharedApplication] terminate];
but it terminates application roughl开发者_StackOverflow社区y.........
UIApplication *app=[UIApplication sharedApplication];
    SEL selector=@selector(terminateWithSuccess);
    if([app respondsToSelector:selector])
        [app performSelector:selector];
 
         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论