从loacdatabase中搜索单词并尝试获取#category和#word IOS / ObjectiveC

时间:2018-05-30 11:28:06

标签: ios objective-c

enter image description here 我有一个单词表,我正在尝试搜索单词“Fine”并试图控制#category和#word我的查询是

NSString *query = [NSString
stringWithFormat:@"Select field1, field2, field3 FROM words WHERE field3 = '%@ '", @"Fine"];
FMResultSet *result =[db executeQuery:query];
while([result next])
 {
     NSLog(@"words  %@ %@ " ,
    [result stringForColumn:@"field1"],
    [result stringForColumn:@"field2"]);

 } 

当我运行查询时没有显示和编译器不进入Body,如果有人得到错误然后发表评论...

0 个答案:

没有答案