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);
            }
           
        }];
        
    }
     
  • 相关阅读:
    table
    html <input>
    html基本结构
    Spark join连接
    combineByKey
    scala mkstring
    countByValue
    spark aggregate
    scala flatmap、reduceByKey、groupByKey
    生态圈安装
  • 原文地址:https://www.cnblogs.com/iQingYang/p/6688379.html
Copyright © 2011-2022 走看看