0 Replies - 922 Views - Last Post: 30 December 2017 - 08:38 PM

#1 pheonixfire   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 24
  • Joined: 26-July 17

unwind segue difficulties

Posted 30 December 2017 - 08:38 PM

Hi,

I'm looking for a fresh pair of eyes to have a look at the problem I'm having with trying to unwind a segue

here's the unwind code in the main view controller

@IBAction func unwindToSelection(segue: UIStoryboardSegue) { }


when I try linking to the unwindToSelection in my main view controller from the my question view controller/storyboard
the only option is unwindToSelectionWithSegue

below is the error message I get when I try to run the app after selecting the only option available

Quote

2017-12-31 14:05:09.155173+1100 memory aid taekwondo[2735:126934] -[memory_aid_taekwondo.QuestionsViewController BackButton:]: unrecognized selector sent to instance 0x7faa4940aeb0
2017-12-31 14:05:09.215794+1100 memory aid taekwondo[2735:126934] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[memory_aid_taekwondo.QuestionsViewController BackButton:]: unrecognized selector sent to instance 0x7faa4940aeb0'
*** First throw call stack:
(
0 CoreFoundation 0x000000010a34812b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00000001066cff41 objc_exception_throw + 48
2 CoreFoundation 0x000000010a3c9024 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 UIKit 0x000000010719ff51 -[UIResponder doesNotRecognizeSelector:] + 295
4 CoreFoundation 0x000000010a2caf78 ___forwarding___ + 1432
5 CoreFoundation 0x000000010a2ca958 _CF_forwarding_prep_0 + 120
6 UIKit 0x0000000106f6d972 -[UIApplication sendAction:to:from:forEvent:] + 83
7 UIKit 0x00000001070ecc3c -[UIControl sendAction:to:forEvent:] + 67
8 UIKit 0x00000001070ecf59 -[UIControl _sendActionsForEvents:withEvent:] + 450
9 UIKit 0x00000001070ebe86 -[UIControl touchesEnded:withEvent:] + 618
10 UIKit 0x0000000106fe3807 -[UIWindow _sendTouchesForEvent:] + 2807
11 UIKit 0x0000000106fe4f2a -[UIWindow sendEvent:] + 4124
12 UIKit 0x0000000106f88365 -[UIApplication sendEvent:] + 352
13 UIKit 0x00000001078d4a1d __dispatchPreprocessedEventFromEventQueue + 2809
14 UIKit 0x00000001078d7672 __handleEventQueueInternal + 5957
15 CoreFoundation 0x000000010a2eb101 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
16 CoreFoundation 0x000000010a38af71 __CFRunLoopDoSource0 + 81
17 CoreFoundation 0x000000010a2cfa19 __CFRunLoopDoSources0 + 185
18 CoreFoundation 0x000000010a2cefff __CFRunLoopRun + 1279
19 CoreFoundation 0x000000010a2ce889 CFRunLoopRunSpecific + 409
20 GraphicsServices 0x000000010cad49c6 GSEventRunModal + 62
21 UIKit 0x0000000106f6c5d6 UIApplicationMain + 159
22 memory aid taekwondo 0x0000000105db6987 main + 55
23 libdyld.dylib 0x000000010b4e6d81 start + 1
24 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException


I feel like I'm banging my head on a brick wall with this issue, I've even tried doing a normal segue to go
back to my main view controller and even that isn't working

any help is appreciated
pheonixfire

Is This A Good Question/Topic? 0
  • +

Page 1 of 1