私はこの選択行を持っています。
[TableProperties setObject:[NSString stringWithFormat:@"username='%@' AND id IN (SELECT Max(id) FROM messages GROUP BY MD5) ",MobilyUserAccount] forKey:@"tableWhere"];
この選択行をに変更したい。
NSPredicate *findUser = [NSPredicate predicateWithFormat:@"username='%@' AND id IN (SELECT id==max(id) FROM messages GROUP BY MD5)",MobilyUserAccount];
アプリケーションを実行すると、このエラーが発生します。
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Unable to parse the format string "username='%@' AND id IN (SELECT id==max(id) FROM messages GROUP BY MD5)"'
最初の行を変換するのに助けが必要です。
NSPredicate *findUser = [NSPredicate predicateWithFormat]
皆さんありがとう