首页 新闻 会员 周边

present过去下个页面就报错

0
悬赏园豆:5 [待解决问题]

-(void)addWorkBtn:(UIButton *)btn{

    

    Controller *er = [[Controlleralloc]init];

    

    [self presentViewController:er animated:YEScompletion:nil];

}

 

下面是报错的

2015-07-16 21:58:56.446 IMFiveApp[2504:46117] *** Assertion failure in -[UINib initWithNibName:directory:bundle:], /SourceCache/UIKit_Sim/UIKit-3347.44/UINib.m:98

2015-07-16 21:58:56.458 IMFiveApp[2504:46117] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: (name != nil) && ([name length] > 0)'

*** First throw call stack:

(

0   CoreFoundation                      0x000000010a1e4c65 __exceptionPreprocess + 165

1   libobjc.A.dylib                     0x0000000109a61bb7 objc_exception_throw + 45

2   CoreFoundation                      0x000000010a1e4aca +[NSException raise:format:arguments:] + 106

3   Foundation                          0x000000010967598f -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195

4   UIKit                               0x00000001085c42a0 -[UINib initWithNibName:directory:bundle:] + 164

5   UIKit                               0x000000010841d6ca -[UIViewController _loadViewFromNibNamed:bundle:] + 164

6   UIKit                               0x000000010841dd08 -[UIViewController loadView] + 109

7   UIKit                               0x000000010841df79 -[UIViewController loadViewIfRequired] + 75

8   UIKit                               0x000000010841e40e -[UIViewController view] + 27

9   UIKit                               0x00000001089ab48d -[_UIFullscreenPresentationController _setPresentedViewController:] + 65

10  UIKit                               0x00000001083f8da9 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 105

11  UIKit                               0x000000010842a288 -[UIViewController _presentViewController:withAnimationController:completion:] + 1761

12  UIKit                               0x000000010842c701 __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 132

13  UIKit                               0x000000010842c625 -[UIViewController presentViewController:animated:completion:] + 229

14  IMFiveApp                           0x0000000106eaaabf -[WorkPalnViewController addWorkBtn:] + 111

15  UIKit                               0x00000001082eeda2 -[UIApplication sendAction:to:from:forEvent:] + 75

16  UIKit                               0x000000010840054a -[UIControl _sendActionsForEvents:withEvent:] + 467

17  UIKit                               0x00000001083ff919 -[UIControl touchesEnded:withEvent:] + 522

18  UIKit                               0x000000010833b998 -[UIWindow _sendTouchesForEvent:] + 735

19  UIKit                               0x000000010833c2c2 -[UIWindow sendEvent:] + 682

20  UIKit                               0x0000000108302581 -[UIApplication sendEvent:] + 246

21  UIKit                               0x000000010830fd1c _UIApplicationHandleEventFromQueueEvent + 18265

22  UIKit                               0x00000001082ea5dc _UIApplicationHandleEventQueue + 2066

23  CoreFoundation                      0x000000010a118431 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17

24  CoreFoundation                      0x000000010a10e2fd __CFRunLoopDoSources0 + 269

25  CoreFoundation                      0x000000010a10d934 __CFRunLoopRun + 868

26  CoreFoundation                      0x000000010a10d366 CFRunLoopRunSpecific + 470

27  GraphicsServices                    0x000000010c56ba3e GSEventRunModal + 161

28  UIKit                               0x00000001082ed900 UIApplicationMain + 1282

29  IMFiveApp                           0x0000000106eec13f main + 111

30  libdyld.dylib                       0x000000010aadf145 start + 1

)

libc++abi.dylib: terminating with uncaught exception of type NSException

F多路的主页 F多路 | 初学一级 | 园豆:197
提问于:2015-07-16 22:12
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册