adsense728x90


ios ViewController 끼워넣고, setManagedObjectContext:]: unrecognized selector sent to instance Mac


setManagedObjectContext:]: unrecognized selector sent to instance

에 따르면,

CoreData를 사용하도록 만든 default code에서 
topViewController에 managed context를 할당하도록 돼 있다.

story board에서 내 맘대로 view controller를 master view controller보다 앞에 끼워 넣으면, crash된다.


2012-12-23 17:37:20.754 ...[30661:11603] -[... setManagedObjectContext:]: unrecognized selector sent to instance 0x8186c90

2012-12-23 17:37:20.760 ...[30661:11603] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[... setManagedObjectContext:]: unrecognized selector sent to instance 0x8186c90'

*** First throw call stack:

(0x1fc1012 0x13fee7e 0x204c4bd 0x1fb0bbc 0x1fb094e 0x2079 0x377b7 0x37da7 0x38fab 0x4a315 0x4b24b 0x3ccf8 0x1f1cdf9 0x1f1cad0 0x1f36bf5 0x1f36962 0x1f67bb6 0x1f66f44 0x1f66e1b 0x387da 0x3a65c 0x1cfd 0x1c25)

libc++abi.dylib: terminate called throwing an exception

(lldb) 


default code를 지우던지, 고치기.



덧글

댓글 입력 영역