is the syntax for the line of code below correct?
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"type == %@",selectedAnimalType];
I want the 'selectedAnimalType' string to be used in a search to display the the user selected.
I ran an NSLog statement for the %@ object and it returned what I wanted
NSLog(@"%@",selectedAnimalType)
;
thanks for any help.