I added a custom view class with its own xib. In the xib, File's Owner -> Custom Class is set to "MyCustomView".
I added a blank view in my storyboard with class set to "MyCustomView"
When I run my app, I don't see my view being displayed properly. However, I do see 2013-03-01 16:52:48.283 Test[56785:c07] MyCustomView initWithCoder
Any ideas what went wrong?
I have isolated this error here: http://bit.ly/YdDbqU
Thanks!
EDIT:
- I turned off autolayout
I used the following:
UIView *subview = [[NSBundle mainBundle] loadNibNamed:@"MyCustomView" owner:self options:nil].lastObject; subview.frame = self.myCustomViewInstance.bounds; [self.view addSubview:subview];
Any everything worked!