> 2014-09-20 18:04:45.564 storyboard_demo [6919:60b]嵌套推送
动画可导致导航栏损坏2014-09-20 18:04:45.921 storyboard_demo [6919:60b]完成导航 转变为意外状态。导航栏子视图树可能 变得腐败。 2014-09-20 18:04:46.442 storyboard_demo [6919:60b] * 由于未捕获的异常而终止应用程序 ' NSInvalidArgumentException',原因:'接收者 ()没有带标识符的segue '第三'' * 第一次抛出调用堆栈:(0 CoreFoundation 0x017ed1e4 exceptionPreprocess + 180 1 libobjc.A.dylib
0x0156c8e5 objc_exception_throw + 44 2 UIKit
0x0034d48c - [UIViewController shouldPerformSegueWithIdentifier:sender:] + 0 3 storyboard_demo
0x0000254e - [secondViewController btn_second:] + 110 4
libobjc.A.dylib 0x0157e880 - [NSObject performSelector:withObject:withObject:] + 77 5 UIKit
0x0022e3b9 - [UIApplication sendAction:to:from:forEvent:] + 108 6
UIKit 0x0022e345 - [UIApplication sendAction:toTarget:fromSender:forEvent:] + 61 7 UIKit
0x0032fbd1 - [UIControl sendAction:to:forEvent:] + 66 8 UIKit
0x0032ffc6 - [UIControl _sendActionsForEvents:withEvent:] + 577 9
UIKit 0x0032f243 - [UIControl touchesEnded:withEvent:] + 641 10 UIKit
0x0026dddd - [UIWindow _sendTouchesForEvent:] + 852 11 UIKit
0x0026e9d1 - [UIWindow sendEvent:] + 1117 12 UIKit
0x002405f2 - [UIApplication sendEvent:] + 242 13 UIKit
0x0022a353 _UIApplicationHandleEventQueue + 11455 14 CoreFoundation 0x0177677f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 15 15 CoreFoundation 0x0177610b __CFRunLoopDoSources0 + 235 16 CoreFoundation 0x017931ae __CFRunLoopRun + 910 17 CoreFoundation
0x017929d3 CFRunLoopRunSpecific + 467 18 CoreFoundation
0x017927eb CFRunLoopRunInMode + 123 19 GraphicsServices
0x037e15ee GSEventRunModal + 192 20 GraphicsServices
0x037e142b GSEventRun + 104 21 UIKit
0x0022cf9b UIApplicationMain + 1225 22 storyboard_demo
0x00002e4d main + 141 23 libdyld.dylib
0x01e3470d开始+ 1 24 ??? 0x00000001 0x0 + 1)libc ++ abi.dylib:以未捕获终止 NSException类型的异常
(lldb)
答案 0 :(得分:0)
分两步完成。
btn_second:
可以发布已被按下的通知,然后返回“首先”。 '第一'收到通知并设置标志。在viewWillAppear
,'首先'检查旗帜,并做第三个'如果它已经设定了。