Skip to content

Instantly share code, notes, and snippets.

@wabzqem
Created July 13, 2012 01:13
Show Gist options
  • Save wabzqem/3102136 to your computer and use it in GitHub Desktop.
Save wabzqem/3102136 to your computer and use it in GitHub Desktop.
- (void)viewDidLoad
{
[super viewDidLoad];
CollectionHorizontalListViewController *cat1 = [[CollectionHorizontalListViewController alloc] initWithNibName:@"CollectionHorizontalListViewController" bundle:nil];
[self addChildViewController:cat1];
[_category1Container addSubview:cat1.view]; //crashes here, cat1.view is nil
[cat1 didMoveToParentViewController:self];
@wabzqem
Copy link
Author

wabzqem commented Jul 13, 2012

thread #1: tid = 0x1c03, 0x01d19e52 libobjc.A.dylibobjc_exception_throw, stop reason = breakpoint 1.3 frame #0: 0x01d19e52 libobjc.A.dylibobjc_exception_throw
frame #1: 0x01ef348b CoreFoundation+[NSException raise:format:] + 139 frame #2: 0x00eb98c4 UIKit-[UINib instantiateWithOwner:options:] + 2316

..
2012-07-13 11:26:04.455 AFPrototype30320:c07
libc++abi.dylib: terminate called throwing an exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment