Skip to content

Instantly share code, notes, and snippets.

@amiri
Created November 28, 2010 20:30
Show Gist options
  • Save amiri/719283 to your computer and use it in GitHub Desktop.
Save amiri/719283 to your computer and use it in GitHub Desktop.
NSMutableArray *tempGreens = [NSMutableArray array];
for (id object in [[searchViewArray valueForKey:@"produceName"] filteredArrayUsingPredicate:predicate]) {
NSString *mygreen = [NSString string];
mygreen = object;
NSLog(@"During loop, my temp string is: %@",mygreen);
[tempGreens addObject:mygreen];
}
NSLog(@"After loop my temp array is: %@",tempGreens);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment