-1
我執行核心數據fetchRequest如下:奇怪的崩潰從核心數據
AppDelegate *objAppDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
NSManagedObjectContext *moc= [[NSManagedObjectContext alloc] init];
moc.persistentStoreCoordinator = objAppDelegate.persistentStoreCoordinator;
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSEntityDescription *entity = [NSEntityDescription entityForName:PUSH_DATA_TABLE inManagedObjectContext:moc];
[request setEntity:entity];
NSError *error;
NSArray *arr = [moc executeFetchRequest:request error:&error];
,但應用程序在行NSArray *arr = [moc executeFetchRequest:request error:&error];
崩潰但下列情況除外:
終止應用程序由於未捕獲的異常'NSInvalidUnarchiveOperationException',原因:' - [NSKeyedUnarchiver decodeBoolForKey:]:key(UIHighlighted)的值不是布爾值'
任何人都可以幫助我解決這個問題嗎?
這個異常與CoreData無關,你確定異常發生在excuteFetchRequest行嗎? – Suresh
請不要在這裏要求儘快 - 當你的觀衆主要由志願者組成時,這是不合適的。他們**可以在他們的閒暇時間解決您的問題。 – halfer
錯誤消息表明在圖形中存在具有錯誤鍵值「UIHighlighted」的值類型的存檔對象。 – vadian