Hi all, I've created a .xib file and added a UIView to it in IB that I've called detailView
. I need to load a .xib into the detailView
area, and here is the code I'm using in my view controller to do so:
NSArray *nibObjects = [[NSBundle mainBundle] loadNibNamed:@"DetailView"
owner:self
options:nil];
UIView *nibView = [nibObjects objectAtIndex:0];
self.detailView = nibView;
A screenshot of the setup in IB is here: http://www.pict.com/view/2612170/0/screenshot20100123at2
The detailView .xib loads, but for some reason disregards the frame for the detailView area that was set up in IB and fills the whole screen. What gives???
Thanks!