2013-10-22 3 views
0

많은 스토리 중 하나를 스토리 보드에 연결하는 중입니다. 마침내 싫증이 나서 빈 UIViewController를 내 스토리 보드로 드래그하고 푸시 세그 (push segue)를 통해 버튼을 연결했습니다. 단추 나 뷰에 첨부 된 메서드, 대리자, 동작은 없지만 전환이 발생하지는 않습니다. 새로운 Segue에서 UIViewController 충돌이 발생합니까?

스택입니다 :

2013-10-22 13:11:10.070 Party Prioritizer[5445:a0b] -[UIViewController setDelegate:]: unrecognized selector sent to instance 0xa260020 
2013-10-22 13:11:10.073 Party Prioritizer[5445:a0b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController setDelegate:]: unrecognized selector sent to instance 0xa260020' 
*** First throw call stack: 
(
    0 CoreFoundation      0x01a7c5e4 __exceptionPreprocess + 180 
    1 libobjc.A.dylib      0x0177d8b6 objc_exception_throw + 44 
    2 CoreFoundation      0x01b19903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275 
    3 CoreFoundation      0x01a6c90b ___forwarding___ + 1019 
    4 CoreFoundation      0x01a6c4ee _CF_forwarding_prep_0 + 14 
    5 Party Prioritizer     0x0002f81c -[WeddingViewController prepareForSegue:sender:] + 236 
    6 UIKit        0x00a239cc -[UIStoryboardSegueTemplate _perform:] + 156 
    7 UIKit        0x00a23a59 -[UIStoryboardSegueTemplate perform:] + 115 
    8 libobjc.A.dylib      0x0178f874 -[NSObject performSelector:withObject:withObject:] + 77 
    9 UIKit        0x004f1c8c -[UIApplication sendAction:to:from:forEvent:] + 108 
    10 UIKit        0x004f1c18 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61 
    11 UIKit        0x005e96d9 -[UIControl sendAction:to:forEvent:] + 66 
    12 UIKit        0x005e9a9c -[UIControl _sendActionsForEvents:withEvent:] + 577 
    13 UIKit        0x005e8d4b -[UIControl touchesEnded:withEvent:] + 641 
    14 UIKit        0x0052f0cd -[UIWindow _sendTouchesForEvent:] + 852 
    15 UIKit        0x0052fd34 -[UIWindow sendEvent:] + 1232 
    16 UIKit        0x00503a36 -[UIApplication sendEvent:] + 242 
    17 UIKit        0x004edd9f _UIApplicationHandleEventQueue + 11421 
    18 CoreFoundation      0x01a058af __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15 
    19 CoreFoundation      0x01a0523b __CFRunLoopDoSources0 + 235 
    20 CoreFoundation      0x01a2230e __CFRunLoopRun + 910 
    21 CoreFoundation      0x01a21b33 CFRunLoopRunSpecific + 467 
    22 CoreFoundation      0x01a2194b CFRunLoopRunInMode + 123 
    23 GraphicsServices     0x031899d7 GSEventRunModal + 192 
    24 GraphicsServices     0x031897fe GSEventRun + 104 
    25 UIKit        0x004f094b UIApplicationMain + 1225 
    26 Party Prioritizer     0x0001c46d main + 141 
    27 libdyld.dylib      0x02e79725 start + 0 
) 
libc++abi.dylib: terminating with uncaught exception of type NSException 
(lldb) 

어떤 생각을 왜 내 다른 50 SEGUE의 작품, 아직 내가 어떤 이유로이 빈 하나가 동작하지 않습니다?

+0

다음은 스레드 목록입니다. http://i.imgur.com/Y2wIZiw.png – Anthony

+0

코드를 추가하십시오. 난 당신이 대리자 속성없이보기에 대리인을 설정하는 것 같아요 –

+0

내가보기에 버튼을 드래그하고, 새로운 uiviewcontroller를 화면으로 드래그하고, 버튼과 컨트롤러 사이에 푸시 세그를 만들었습니다. – Anthony

답변

1

단추가있는 화면 컨트롤러 (WeddingViewController)는 prepareForSegue:sender:을 구현하고 있습니다. 아마도 그 방법에서는 segue 식별자를 확인하지 않을 것입니다. 어쨌든, 그 방법의 어느 시점에서 당신은 델리게이트가없고 충돌을 일으키는 뷰 컨트롤러의 델리게이트를 설정하고 있습니다.

0

ViewController를 누를 수 없습니다 ... NavigationController에 삽입해야합니다. 그러면 밀어 넣기가 작동합니다.

관련 문제