嘿所有基本上我試圖保存一個自定義對象的數組,它保存很好,但是當我關閉應用程序並重新打開它實際上加載保存的數組(表入視圖),但凍結了,我得到的所有是SIGKILL。我如何找到導致問題的原因?如何診斷iPhone的SIGKILL錯誤?
這是我使用的,如果它有助於加載數據的代碼:
NSFileManager *fileManager = [NSFileManager defaultManager];
if([fileManager fileExistsAtPath:dataFilePath]) {
// Load the array
NSMutableArray *arrayFromDisk = [NSKeyedUnarchiver
unarchiveObjectWithFile:dataFilePath];
[Data sharedData].listOfItems = arrayFromDisk;
NSLog(@"Loaded");
}
你有沒有看[這個問題](http://stackoverflow.com/questions/3098684/ iphone應用程序內運行的模擬器-4-0-收到-SIGKILL)? – jtbandes
@jtbandes我將所有的數據保存在' - (void)applicationDidEnterBackground:'中,問題是當我重新打開應用程序時,我正在獲取一個sigkill。 –