How To Use Iboutlet Variables As Static In Swift

[Solved] How To Use Iboutlet Variables As Static In Swift | Swift - Code Explorer | yomemimo.com
Question : how to use IBOutlet variables as static in swift

Answered by : programmer-919

class Test: UIViewController { var boxGender: UIView! static var instance: Test? override func viewDidLoad() { super.viewDidLoad() Test.instance = self }
}
Test.instance?.boxGender

Source : https://stackoverflow.com/questions/51472211/swift-set-iboutlet-static | Last Update : Mon, 23 May 22

Answers related to how to use iboutlet variables as static in swift

Code Explorer Popular Question For Swift