我的代码:
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"File" inManagedObjectContext:[self managedObjectContext]];
[fetchRequest setEntity:entity];
cellText = @"Crysis 3 - 'The Nanosuit' Gameplay Trailer";
NSPredicate *predicate = [NSPredicate predicateWithFormat:cellText];
[fetchRequest setPredicate:predicate];
构建后我有错误
由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“无法解析格式字符串“Crysis 3 - 'The Nanosuit' Gameplay Traile”'
如何解决?