objective c - Add multiple objects to NSMutableArray from file list -


i having picker view selecting states(or prefectures europe).the current method using populate picker view following:

in viewdidload

_arrayno = [[nsmutablearray alloc] init]; [_arrayno addobject:@" al "]; [_arrayno addobject:@" ak "]; [_arrayno addobject:@" az "]; [_arrayno addobject:@" other "]; 

and usual pickerview delegate , datasource. above code don't have issues. apparantly if want add many states/town(let't on 100) array method become hard maintain.

my question can load states array list in file resides inside supporting files folder? example file containing:

al ak az ar ca ... wi wv wi other 

thanks in advance.

you can have .plist file list , load plist file root dictionary keys/values array.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -