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

直接上代码:

var myDelegate:AppDelegate?

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



posted @   yfceshi  阅读(901)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示