this question has answer here:
ok, created simple drawing app following tutorial: http://www.raywenderlich.com/18840/how-to-make-a-simple-drawing-app-with-uikit
i got past part adds rgb sliders , every time try opening settings viewcontroller, crashes in output:
* terminating app due uncaught exception 'nsunknownkeyexception', reason: '[ setvalue:forundefinedkey:]: class not key value coding-compliant key redoutlet.' * first throw call stack: (0x367a72a3 0x32f7e97f 0x367a6f99 0x37e609d1 0x37e5c723 0x3672d61b 0x3703e23d 0x3703dabb 0x36f3601d 0x36ec0465 0x36f4c333 0x36f8dcd1 0x36f8cfc7 0x370af257 0x36f8c0a5 0x36f8c057 0x36f8c035 0x36f8b8eb 0x36f8bde1 0x36eb45f1 0x36ea1801 0x36ea111b 0x324c75a3 0x324c71d3 0x3677c173 0x3677c117 0x3677af99 0x366edebd 0x366edd49 0x324c62eb 0x36ef52f9 0x515f1 0x378aeb20) libc++abi.dylib: terminate called throwing exception
it worked fine until added rgb sliders. don't know tried commenting out code had added during rgb slider part , still crashes. if view source code, here go:
i'm kinda desperate fix finish app more polished , useable. also, when crashes, stops @ line in "main.m":
return uiapplicationmain(argc, argv, nil, nsstringfromclass([appdelegate class]));
with "thread 1: signal sigbart"
i got past part adds rgb sliders , every time try opening settings viewcontroller
given error you're seeing, sounds you've got control (like slider) connected outlet doesn't exist. when settings view controller loads .xib file, .xib loading machinery deserializing in .xib , trying connect file's owner using -setvalue:forkey:
, specifying outlet doesn't exist in view controller, perhaps because you've changed outlet's name or removed it.
take @ settings view controller's header file. have outlet named redoutlet
? i'm guessing don't.
Comments
Post a Comment