iphone - Error: This class is not key value coding-compliant for the key keyPath -
uistoryboard* sb = [uistoryboard storyboardwithname:@"mainstoryboard" bundle:nil]; uiviewcontroller* vc = [sb instantiateviewcontrollerwithidentifier:@"settingsviewcontroller"]; [[self navigationcontroller] pushviewcontroller:vc animated:yes];
trying force viewcontroller navigationcontroller in storyboard , maintain getting error.
* terminating app due uncaught exception 'nsunknownkeyexception', reason: '[<settingsviewcontroller 0x1f98f100> setvalue:forundefinedkey:]: class not key value coding-compliant key keypath.' * first throw phone call stack: (0x31f4a3e7 0x39c3b963 0x31f4a0d5 0x327b87d9 0x327b4543 0x31ed08a5 0x33ef5e69 0x340e5b09 0x71aa3 0x33e1b31d 0x33e9dda9 0x32859657 0x31f1f857 0x31f1f503 0x31f1e177 0x31e9123d 0x31e910c9 0x35a6f33b 0x33dad2b9 0x6567d 0x3a068b20) libc++abi.dylib: terminate called throwing exception
i got error becouse had set in "user defined runtime attributes" field in "identity inspector" tab. mystake left default keypath value key path column , caused problem.
iphone objective-c xcode
No comments:
Post a Comment