嘿所有基本上我试图保存一个自定义对象的数组,它保存很好,但是当我关闭应用程序并重新打开它实际上加载保存的数组(表入视图),但冻结了,我得到的所有是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。 –