I do not see why this compiles:
let viewWillAppearSelector =
But not this:
let viewDidLoadSelector =
Error
"Using an instance member of 'viewDidLoad' for type UIViewController; do you want to use the value type" UIViewController "instead?
Why are the latter not complicated, but the former does?
Update: I changed it to this, and now it compiles:
let viewDidLoadSelector =
But I'm not 100% why this
source share