2015-11-10 39 views

回答

2

你需要這樣做:let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate然後你就可以訪問其成員變量。

+0

我試過了,它說 – toiavalle

+0

使用未解決的標識符UIApplication – toiavalle

+0

不要忘記添加'import UIKit' – Korpel

相關問題