Using the latest Xcode 9 beta, I'm seemingly completely unable to access properties on Swift classes. Even odder, I can access the class itself to instantiate it or whatever, but completely unable to access properties on it.
So if I have this Swift class:
import UIKit
class TestViewController: UIViewController {
var foobar = true
}
And I try to do this:
TestViewController *testViewController = [[TestViewController alloc] init]; // success
testViewController.foobar; // error
What exactly am I doing wrong? New project with Xcode 9.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…