2012-07-21 152 views
0

我alertview给出了这样的问题..它无关使用SQLite ..它给人提供了一些信息..UIAlertView中给出了一个错误

我怎样才能解决这一问题?

UIAlertView *infoShow = [[UIAlertView alloc] initWithTitle: @"info" 
                 message: @"info." 
                 delegate: nil 
              cancelButtonTitle: @"OK" 
              otherButtonTitles: nil]; 


    [infoShow show]; 
    [infoShow release]; 




Unable to load persistent store at URL 'file://localhost/Users/Mac/Library/Application%20Support/iPhone%20Simulator/5.0/Library/Keyboard/UserDictionary.sqlite' ({ 
    metadata =  { 
     NSPersistenceFrameworkVersion = 409; 
     NSStoreModelVersionHashes =   { 
      UserDictionaryEntry = <f0c9025b 602122f9 37a4e274 bdaacec1 b9a66f83 fca5c43b bed5e80a 6baee338>; 
     }; 
     NSStoreModelVersionHashesVersion = 3; 
     NSStoreModelVersionIdentifiers =   (
      "" 
     ); 
     NSStoreType = SQLite; 
     NSStoreUUID = "5D722675-4764-4953-9508-7CBA29078E68"; 
     "_NSAutoVacuumLevel" = 2; 
    }; 
    reason = "The model used to open the store is incompatible with the one used to create the store"; 

}) 

回答

1

这实际上不是问题。这似乎最近发生在SDK的新版本中。这是iPhone模拟器内部的东西,通常在您打开键盘时发生(发现有关键盘的错误)。

这不应该影响你的应用程序的运行,但如果它是尝试重置你的模拟器 - 有一个菜单选项。这应该解决它。

+0

是我的应用程序运行没有问题..我只是有点害怕,我的应用程序将被拒绝大声笑..我只是重置我的模拟器,现在我没有得到那个错误..干杯.. – user123 2012-07-21 23:03:21

0

你是对的 - 它与你的UIAlertView无关。您对Core Data模式进行了更改,现在正试图打开使用旧模式保存的早期版本。删除(或迁移)旧的Core Data存储,你应该没问题。

祝你好运。

+0

感谢那..但我不知道我可以删除或迁移它.. – user123 2012-07-21 22:34:46