I copied a number from native addressbook and it has possibly UTF-8 characters in the beginning and the end
NSString *phoneNumber = @"+488778689898";
NSLog(@"phonenumber.length --> %lu", (unsigned long)phoneNumber.length); //Prints 15
BOOL hasPlusPrefix = [phoneNumber hasPrefix:@"+"];
NSLog(@"hasPrefix -->%d", hasPlusPrefix); // Prints 0
When I debugged the number using the debugger it shows
How do i remove the character in the front and at the end from my NSString.?
Thanks