在我的前綴文件我有這樣的:MagicalRecord - 速記適用於某些實體,但不是別人
#define MR_SHORTHAND
#import "CoreData+MagicalRecord.h"
//this causes an unrecognized selector sent to instance crash
Apple *apple = [Face findFirstByAttribute:@"appleId" withValue:value];
//this works fine
Apple *apple = [Face MR_findFirstByAttribute:@"appleId" withValue:value];
//however this also works fine:
Orange *orange = [Face findFirstByAttribute:@"orangeId" withValue:value];
爲什麼我能夠使用速記一些實體和不與他人?
我得到完全相同的問題。只是剛開始發生。很奇怪,你有答案嗎? – Fogmeister 2013-03-28 11:18:24