1、sqlite转NSDirectory或者NSArray(里面的每一个item都是NSDirectory)
NSMutableArray *results = [NSMutableArray array]; FMResultSet *appointmentResults = [[DataClass getDB] executeQuery:@"SELECT * FROM Appointments WHERE date = ?",currDateString]; while ([appointmentResults next]) { [results addObject:[appointmentResults resultDictionary]]; }
2、转换成NSDirectory后,然后可以将NSDirectory转换成对象
具体请参考前面的博文:http://blog.csdn.net/cubesky/article/details/38754489<NSDirectory与NSObject自动转换>