viewDidLoad is called twice

前端 未结 5 600
暗喜
暗喜 2020-12-10 06:43

My viewDidLoad in a view controller is called twice. Once by [UIViewController View] and a second time by [UINib instanciateWithOwner:Option

5条回答
  •  忘掉有多难
    2020-12-10 07:40

    Is this the same problem?

    Why is viewDidLoad called twice when the rootViewController property of UIWindow is set?

    Looks like it might be a bug in XCode 4.

提交回复
热议问题