viewDidLoad is called twice

Any code you put inside of viewDidLoad should be able to run multiple times with out any issues. If you have code that only needs to run once for your controller use -awakeFromNib. The reason is because the view of the view controller can be unloaded and loaded multiple times. The code inside of viewDidLoad should only modify the UI to reflect the current state.

Now that I got that out of the way, your particular issue looks to be a bug. See Ned’s answer.

Leave a Comment