-1
我目前正在开发一个iOS app
与左滑动菜单。我使用这个link的模板:(顺便说一下,这是一个大大的编码左滑菜单演示),我更喜欢使用故事板来设计用户界面。左滑动菜单不工作(PFAirViewController)
因此,我从这个Github
链接移植api。我遵循指示,但我仍然有一些致命的错误。这是link到我的项目的副本。任何人都可以帮助我解决这个问题。
下面是控制台中显示异常输出:
2014-12-01 16:08:21.654 Fitness Main Framework[10757:504122] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
0 CoreFoundation 0x0000000104e8fb75 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010477fbb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000104d8772e -[__NSArrayI objectAtIndex:] + 190
3 Fitness Main Framework 0x0000000103fd196f -[PHAirViewController saveThumbnailImage:atIndexPath:] + 159
4 Fitness Main Framework 0x0000000103fce560 -[PHAirViewController showAirViewFromViewController:complete:] + 752
5 Fitness Main Framework 0x0000000103fd3841 -[ZZPersonalProfileTabVC leftButtonTouch] + 145
6 UIKit 0x000000010528063e -[UIApplication sendAction:to:from:forEvent:] + 75
7 UIKit 0x00000001053872c0 -[UIControl _sendActionsForEvents:withEvent:] + 467
8 UIKit 0x000000010538668f -[UIControl touchesEnded:withEvent:] + 522
9 UIKit 0x00000001052c60e8 -[UIWindow _sendTouchesForEvent:] + 735
10 UIKit 0x00000001052c6a13 -[UIWindow sendEvent:] + 683
11 UIKit 0x0000000105293791 -[UIApplication sendEvent:] + 246
12 UIKit 0x00000001052a085d _UIApplicationHandleEventFromQueueEvent + 17370
13 UIKit 0x000000010527be9c _UIApplicationHandleEventQueue + 2066
14 CoreFoundation 0x0000000104dc49d1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
15 CoreFoundation 0x0000000104dba89d __CFRunLoopDoSources0 + 269
16 CoreFoundation 0x0000000104db9ed4 __CFRunLoopRun + 868
17 CoreFoundation 0x0000000104db9906 CFRunLoopRunSpecific + 470
18 GraphicsServices 0x00000001081009f0 GSEventRunModal + 161
19 UIKit 0x000000010527f1a0 UIApplicationMain + 1282
20 Fitness Main Framework 0x0000000103fd38d3 main + 115
21 libdyld.dylib 0x0000000107c55145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
修复您的格式或可能没有人会回答你!我这样做,而不是你好运! – mybirthname 2014-12-02 00:39:06
Thx的建议! – 2014-12-02 00:43:27
而你覆盖我的格式ahh,无论如何,祝你好运:) – mybirthname 2014-12-02 00:45:46