rangeOfString for quote character works in Mac OSX, not in IOS.
Here is the code:
if ([itemRecord.name rangeOfString:itemFilter.nameIncludes options:NSCaseInsensitiveSearch].location == NSNotFound) {
filterMatch = NO;
}
itemFilter.nameIncludes in this case is " (the quote character) or it contains the quote character; i.e. 8"
itemRecord.name in this case is Cedar planks 8" x 1"
On Mac OS X this works fine and matches. On iOS 11.4.1, this fails. This seems like a bug in iOS.
Does anyone have a workaround?
Thanks