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

直接上代码:

var myDelegate:AppDelegate?

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



原文地址:https://www.cnblogs.com/yfceshi/p/7119889.html