草庐IT

shopSearchBar

全部标签

ios - NSPredicate 包含字符串小写

我正在使用iOSSDK6.0和XCode4.5.2开发一个iOS应用程序。我的目标开发是4.3。我正在使用CoreData来管理我的数据。现在我有了这个NSPredicate来搜索商店:if((shopSearchBar.text!=nil)&&([shopSearchBar.textlength]>0)){NSPredicate*predicate=[NSPredicatepredicateWithFormat:@"name=%@",shopSearchBar.text];[fetchRequestsetPredicate:predicate];}这是商店实体:我必须将name转换为

ios - NSPredicate 包含字符串小写

我正在使用iOSSDK6.0和XCode4.5.2开发一个iOS应用程序。我的目标开发是4.3。我正在使用CoreData来管理我的数据。现在我有了这个NSPredicate来搜索商店:if((shopSearchBar.text!=nil)&&([shopSearchBar.textlength]>0)){NSPredicate*predicate=[NSPredicatepredicateWithFormat:@"name=%@",shopSearchBar.text];[fetchRequestsetPredicate:predicate];}这是商店实体:我必须将name转换为