开发者

Code for terminating application on button click ( in iPhone )

开发者 https://www.devze.com 2022-12-27 17:53 出处:网络
I need code for terminating the application on a button click but termination should be done with basic animation....Can anyone suggest?

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

精彩评论

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