using the followings I can create a view and then load a nib into it:
CGRect newViewRect = CGRectMake(0, self.view.bounds.size.width - 335, 335, 400);
UIView *newView = [[UIView alloc] initWithFrame:newViewRect];
newView = [[[NSBundle mainBundle] loadNibNamed:@"TheNewViewNib" owner:self options:nil] objectAtIndex:0];
Here is the issue, when ever my xib file already contains a UIView
, XCode logs only "lldb", but let's say if I delete the UIView
in the xib file and add any other object, it shows perfectly fine.
But since I want to load the entire UIView
with all everything inside it, I prefer to find a way to load the nib with a UIView
.
Thanks for your help.