I have this NSString
Asia/Tokyo
I want to get only "Tokyo" by removing "Asia/" I know it will get to work by searching for the position of "/" but how do i do that? pls help
To get the location of a substring in a string :
[@"Asia/Tokyo" rangeOfString:@"/"].location
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With