[myItem enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
if (obj isEqualToString:@"someString" > 1) { // not correct syntax
self.someLabel.text = [self.someLabel.text stringByAppendingString:[NSString stringWithFormat:@"\t\t%@\n", obj]];
}
}];
I am trying to check if obj is equal to "someString". And if "someString" is displayed more than one I would like to remove it from the obj.
"itemOne"
"otherItem"
"someString"
"someString" <- remove
"someString" <- remove
I am having issues dynamically doing this within the loop in objective c.