直接上代码:

var myDelegate:AppDelegate?

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



相关文章: