I want to ask a question about the NSString * in objective C. Can I check the last char of a NSString * object?
Example:
NSString* data = @"abcde,";
if(data is end with ',') // I don't know this part
// do sth
NSString *data = @"abcde,";
if([data hasSuffix:@","]) // This returns true in this example
// do something