iOS - App内使用代码退出程序
来源:互联网 发布:java style标签 编辑:程序博客网 时间:2024/06/04 20:09
App内使用代码退出程序
- (void)configUI{ UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"提示" message:@"" delegate:self cancelButtonTitle:@"cancel" otherButtonTitles:@"Exit", nil]; [alert show];}- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex{ NSLog(@"%ld",buttonIndex); if (buttonIndex == 1) { [self exitApp]; }}- (void)exitApp{//退出App UIWindow *window = [UIApplication sharedApplication].delegate.window;//获得窗口 [UIView animateWithDuration:1.0f animations:^{ window.alpha = 0; window.frame = CGRectMake(SCREEN_WIDTH/2, window.bounds.size.width, 0, 0); } completion:^(BOOL finished) { exit(0);//动画完毕退出App }];}
0 0
- iOS - App内使用代码退出程序
- IOS 退出程序APP代码
- IOS 退出程序APP代码
- IOS 退出程序APP代码
- IOS 退出程序APP代码
- IOS 退出程序APP代码
- 代码退出IOS中App
- iOS程序内进入 App Store 打分的代码
- iOS程序内进入 App Store 打分的代码
- iOS退出程序的代码
- iOS代码强制退出程序
- ios在app中退出程序
- 怎样用代码方式退出IOS程序
- 怎样用代码方式退出IOS程序
- 怎样用代码方式退出IOS程序
- 怎样用代码方式退出IOS程序
- 怎样用代码方式退出IOS程序
- 怎样用代码方式退出IOS程序
- 递归求幂
- 平衡二叉树
- linux常用命令
- Linux apache 添加 mod_rewrite模块
- LeetCode题解:Maximum Subarray
- iOS - App内使用代码退出程序
- html5兼容IE placeholder问题
- 昨天临摹了网店的首页。以后可以自己装修用所以格外用心了些
- 进程间通信
- MacOS安装与运行MongoDB
- Linux下查看文件内容的命令
- JAVA SDutOJ 题目收录
- 软件测试(一) 近期的一次debug的经历
- 内存管理与垃圾回收2之内存溢出的三种情况及解决办法