After exploring this on the Apple Developer Forums , it seems that in some cases, Xcode 4 creates NIB plug-ins with an Interface Builder interface. The effect is that the rootViewController application loads twice, which really pushes it. The same project loaded in Xcode 3 will not detect a problem.
In my universal application, this only affected the iPad NIB. The iPhone was fine.
I was able to solve this problem:
- Removing the rootViewController connection in Interface Builder (this causes the application to load using
window.rootViewController = nil ) - In viewDidLoad for the main controller (one that was loaded twice), I then manually assign
appDelegate.window.rootViewController = self
So far, this seems to have the desired effect.
Jeremy fuller
source share