When running iOS 8, the IBOutlet
s of my nib based view controllers are nil
, but when running iOS 9, they work fine. Any ideas why this might be happening?
My app supports iOS 8+, and I'm running Xcode 7.2.
The problem was in the way my UIViewController was instantiated. Changing
let myVC = MyViewController()
for
let myVC = MyViewController(nibName: "MyViewController", bundle: nil)
fixed the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With