-
Notifications
You must be signed in to change notification settings - Fork 37
Description
I get this crash every time when trying to present SimpleCam:
2014-09-19 17:53:37.988 Social Stitch[73038:884614] * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
0 CoreFoundation 0x000000010dfc33f5 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010d905bb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010deae4d3 -[__NSArrayM objectAtIndex:] + 227
3 Social Stitch 0x000000010a382829 -[SimpleCam viewDidLoad] + 2873
4 UIKit 0x000000010c2e8190 -[UIViewController loadViewIfRequired] + 738
5 UIKit 0x000000010c2e838e -[UIViewController view] + 27
6 UIKit 0x000000010c88583f -[_UIFullscreenPresentationController _setPresentedViewController:] + 65
7 UIKit 0x000000010c2c3c49 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 105
8 UIKit 0x000000010c2f4121 -[UIViewController _presentViewController:withAnimationController:completion:] + 1746
9 UIKit 0x000000010c2f6461 __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 132
10 UIKit 0x000000010c2f6385 -[UIViewController presentViewController:animated:completion:] + 229
11 UIKit 0x000000011d6999de -[UIViewControllerAccessibility presentViewController:animated:completion:] + 101
This is how I am invoking it:
SimpleCam * simpleCam = [[SimpleCam alloc] init];
simpleCam.delegate = self;
[self presentViewController:simpleCam animated:YES completion:nil];
Hopefully I am just missing something simple, as this library looks great!