The problem code is as follows. [I hope] the problem is completely outlined in the above question. Thanks in advance. MJB UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate {var some_string: NSString = "One" Fun Application (Application: UIApplication, didFinishLaunchingWithOptions Launch Options: [NSObject: AnyObject]?) - & gt; (Prefetch: "some_string", option: zero, references: zero) self.some_string = "two" return true} View override fonts ValueForKeyPath (keyPath: print_n ("init ...") self.addObserver (for self, String, ofObject Object: Any object, change: [NSObject: OOBEZ], contact: asphosphal pointers
, you have to In addition to this, > NSObject dynamic Keywords must use:
, although in your case it will be
dynamic variable some_string: NSString = "one"
UIResponder
.
No comments:
Post a Comment