UIApplicationMain

return UIApplicationMain(argc, argv, nil,NSStringFromClass([AppDelegate class]));

        
        //This function is called in the main entry point to create the application object and the application delegate and set up the event cycle.
        /**
         *          函数在主入口点来创建应用程序对象、应用程序代理和创建事件循环
   argc
         The count of arguments in argv; this usually is the corresponding parameter to main.
         // 参数列表中参数的个数;这通常是main相应的参数
         argv
         A variable list of arguments; this usually is the corresponding parameter to main.
         // 一个可变的参数列表;这通常是main相应的参数。
         principalClassName
         The name of the UIApplication class or subclass. If you specify nil, UIApplication is assumed.
         // 主要的类名 -> UIApplication类或者其子类的名字,如果你指定为空,则默认为UIApplication
         delegateClassName
         The name of the class from which the application delegate is instantiated. If principalClassName designates a subclass of UIApplication, you may designate the subclass as the delegate; the subclass instance receives the application-delegate messages. Specify nil if you load the delegate object from your application’s main nib file.
         // delegateClassName是应用程序类的代理类。如果主要nib文件(在info.plist文件中指定,key是NSMainNibFile)存在,就会在nib文件对象里寻找Application对象和连接它的delegate,因为UIApplication定义了一个delegte变量,这个变量应该遵循UIApplicationDelegate,负责控制程序的运行,如果主nib文件没有这个类,你应该自定义一个这样的类,并将第四个参数改为这个类的类名,

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值