开发者

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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜