Hallo liebes Entwicklerforum
Ich bekomme eine Fehlermeldung, bei der es mir nicht ganz klar ist, woran ich gerade am scheitern bin.
Ich will indem ich auf eine Zelle im Tableview klicke, einen neuen View öffnen. Dabei will ich dem View den Titelnamen in der Methode prepareForSegue: übergeben.
Da ich dynamische Zellen verwende, ist der Name der Zelle ( welcher identisch sein sollten wie der Titel des zu öffnenden Views) in einem Array gespeichert.
Den Titel des View setzte ich so:
DetailView *dtv = segue.destinationViewController;
dtv.title = [self.waren objectAtIndex:indexPath.row];
Wenn ich das Programm jetzt jedoch ausführe, bekomme ich die Fehlermeldung:
015-05-16 11:05:41.799 Post[16137:1095632] -[UITableViewCell row]: unrecognized selector sent to instance 0x7fcf10f54c20
2015-05-16 11:05:41.802 Post[16137:1095632] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableViewCell row]: unrecognized selector sent to instance 0x7fcf10f54c20'
*** First throw call stack:
(
0 CoreFoundation 0x0000000102842c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010211fbb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010284a0ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00000001027a013c ___forwarding___ + 988
4 CoreFoundation 0x000000010279fcd8 _CF_forwarding_prep_0 + 120
5 Post 0x0000000101be7966 -[Produktseite prepareForSegue:sender:] + 278
6 UIKit 0x000000010317910f -[UIStoryboardSegueTemplate _perform:] + 151
7 UIKit 0x0000000102d2cd96 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1242
8 UIKit 0x0000000102d2cf0a -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 219
9 UIKit 0x0000000102c5f62c _applyBlockToCFArrayCopiedToStack + 314
10 UIKit 0x0000000102c5f4a6 _afterCACommitHandler + 533
11 CoreFoundation 0x0000000102775ca7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
12 CoreFoundation 0x0000000102775c00 __CFRunLoopDoObservers + 368
13 CoreFoundation 0x000000010276ba33 __CFRunLoopRun + 1123
14 CoreFoundation 0x000000010276b366 CFRunLoopRunSpecific + 470
15 GraphicsServices 0x0000000105d7ba3e GSEventRunModal + 161
16 UIKit 0x0000000102c3b900 UIApplicationMain + 1282
17 Post 0x0000000101be6bef main + 111
18 libdyld.dylib 0x0000000104dfa145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Hatte jemand von euch vllt schon dieses Problem oder sieht jemand den Fehler, den ich am machen bin ?[b] [/b]
[b]Danke für die Hilfe schon im Vorraus [/b][/b]
Ich bekomme eine Fehlermeldung, bei der es mir nicht ganz klar ist, woran ich gerade am scheitern bin.
Ich will indem ich auf eine Zelle im Tableview klicke, einen neuen View öffnen. Dabei will ich dem View den Titelnamen in der Methode prepareForSegue: übergeben.
Da ich dynamische Zellen verwende, ist der Name der Zelle ( welcher identisch sein sollten wie der Titel des zu öffnenden Views) in einem Array gespeichert.
Den Titel des View setzte ich so:
DetailView *dtv = segue.destinationViewController;
dtv.title = [self.waren objectAtIndex:indexPath.row];
Wenn ich das Programm jetzt jedoch ausführe, bekomme ich die Fehlermeldung:
015-05-16 11:05:41.799 Post[16137:1095632] -[UITableViewCell row]: unrecognized selector sent to instance 0x7fcf10f54c20
2015-05-16 11:05:41.802 Post[16137:1095632] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableViewCell row]: unrecognized selector sent to instance 0x7fcf10f54c20'
*** First throw call stack:
(
0 CoreFoundation 0x0000000102842c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010211fbb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010284a0ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00000001027a013c ___forwarding___ + 988
4 CoreFoundation 0x000000010279fcd8 _CF_forwarding_prep_0 + 120
5 Post 0x0000000101be7966 -[Produktseite prepareForSegue:sender:] + 278
6 UIKit 0x000000010317910f -[UIStoryboardSegueTemplate _perform:] + 151
7 UIKit 0x0000000102d2cd96 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1242
8 UIKit 0x0000000102d2cf0a -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 219
9 UIKit 0x0000000102c5f62c _applyBlockToCFArrayCopiedToStack + 314
10 UIKit 0x0000000102c5f4a6 _afterCACommitHandler + 533
11 CoreFoundation 0x0000000102775ca7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
12 CoreFoundation 0x0000000102775c00 __CFRunLoopDoObservers + 368
13 CoreFoundation 0x000000010276ba33 __CFRunLoopRun + 1123
14 CoreFoundation 0x000000010276b366 CFRunLoopRunSpecific + 470
15 GraphicsServices 0x0000000105d7ba3e GSEventRunModal + 161
16 UIKit 0x0000000102c3b900 UIApplicationMain + 1282
17 Post 0x0000000101be6bef main + 111
18 libdyld.dylib 0x0000000104dfa145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Hatte jemand von euch vllt schon dieses Problem oder sieht jemand den Fehler, den ich am machen bin ?[b] [/b]
[b]Danke für die Hilfe schon im Vorraus [/b][/b]