-1
嗨,我想要做的是在视图中搜索字符串str或标题标签的NSMutable数组。如果该单词已经存在于数组中,那么我想删除它。否则,我想添加它。这是我的代码到目前为止。搜索NSMutableArray
-(IBAction)add:(id)sender{
NSMutableArray *array=[[NSUserDefaults standardUserDefaults] mutableArrayValueForKey:@"favorites"];
NSString *str=header.text;
}
并[这里](http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/NSArray.html )是NSArray的参考,其中所有的搜索功能都是。 –