I have an application in which a small number of objects are defined in MainWindow. A couple of these objects are the UIViewController and UIImageView, which come with this controller. When the application starts, the whole MainWindow.xib loads, and I see that this UIImageView is loaded into memory. At the moment, I do not need this UIImageView.
When I need a UIViewController, I do the usual alloc / init setup. At this point, when I look at this controller with a debugger, the controller is configured correctly, but the UIImageView, which was supposed to be pre-connected using Interface Builder, is always zero.
Any questions on how to ensure that this UIImageView is loaded into memory correctly? This is the only time I have a problem with the objects defined in this single MainWindow.xib file.
source
share