Created
July 13, 2012 01:13
-
-
Save wabzqem/3102136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thread #1: tid = 0x1c03, 0x01d19e52 libobjc.A.dylib
objc_exception_throw, stop reason = breakpoint 1.3 frame #0: 0x01d19e52 libobjc.A.dylib
objc_exception_throwframe #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