I\'m trying to solve a view placement bug that has arisen as of iOS 9. I am instantiating a view controller from a xib file (non-autolayout) and then pushing this onto my
A little bit updated NickProvost's answer:
private var loadViewToken: dispatch_once_t = 0 override func viewDidLayoutSubviews() { super.viewDidLayoutSubviews() dispatch_once(&loadViewToken) { [weak self] in if let wSelf = self { wSelf.setupView() } } }