2011-12-13 23 views
0

每當我按下構建,它會給我的SIGABORT標誌,並返回到代碼。 我需要一個可用的故事板視圖或沒有它,我可以看到我使用調試區如何使用NSLog命令查看從我的調試區域中的.SQLITE數據庫檢索到的數據?

代碼的輸出是

for (PokemonAbility *theability in items) { 

NSLog(@"Number: %@ Name: %@ Generation: %@ Desc: %@",theability.rowid, theability.abilityname, theability.abilitygeneration, theability.abilitydesc); 

} 

參考: Code Reference

回答

1

很難從講什麼你寫道,但我敢打賭,你正在使用來自SQLite的原始數據,這是一個C字符串,並在NSLog中用它作爲NSString。嘗試

[NSString stringWithCString:theability.rowid]; 

相關問題