zoukankan      html  css  js  c++  java
  • <14>退出当前应用程序

    /*
     *退出当前应用程序
     */
    + (void)exitApp;
    + (void)exitApp{
       
        UIWindow *window = [[UIApplication sharedApplication].delegate window];
        //添加动画
        [UIView animateWithDuration:2.0f animations:^{
            window.alpha = 0;
        } completion:^(BOOL finished){
           
            if (finished){
               
                //exit(0):为0时正常运行程序并推出,非0时非正常运行导致程序退出。
                exit(0);
            }
           
        }];
        
    }
     
  • 相关阅读:
    k邻近
    C语言实现pwd—关于linux文件系统
    Linux多线程
    有关临时表
    毕设—线程池thread_pool(草)
    3-26
    3-25
    3-22
    关于中国神华
    3-20
  • 原文地址:https://www.cnblogs.com/iQingYang/p/6688379.html
Copyright © 2011-2022 走看看