I am having a Picker View for selecting states(or prefectures for Europe).The current method i am using to populate the Picker View is the following:
in viewDidLoad
_arrayNo = [[NSMutableArray alloc] init];
[_arrayNo addObject:@" AL "];
[_arrayNo addObject:@" AK "];
[_arrayNo addObject:@" AZ "];
[_arrayNo addObject:@" Other "];
and then the usual pickerView delegate and dataSource. With the above code i don't have any issues. But apparantly if i want to add many states/town(let't say over 100) the array method would become hard to maintain.
My question is can i load the states into the array from a list in a file which resides inside the Supporting files folder? For example a file containing:
AL
AK
AZ
AR
CA
...
WI
WV
WI
Other
Thanks in advance.