Q:

Splitting string into substring in iOS

I have a small doubt on splitting a string into substring.
I want to display State and Country name in one label. i have a string in a  service coming from json file "FullAddress": "New Windsor,New York,USA". i want only New York,USA to display in a label. 

A:

Use this and get your desire String from Array element 1 and 2
NSArray *strings = [FullAddress componentsSeparatedByString:@","];

