OC中APPDelegate[[UIApplication shareApplication]delegate]]Swift实现

直接上代码:

var myDelegate:AppDelegate?

myDelegate = UIApplication.sharedApplication().delegate as? AppDelegate



posted @ 2017-07-05 10:22  yfceshi  阅读(894)  评论(0编辑  收藏  举报