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

直接上代码:

var myDelegate:AppDelegate?

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



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