views:

88

answers:

1

I want to populate one.plist files from a number of .plist files as per the user selection . How to populate UIPickerView with a .plist file ?

+1  A: 

I don't understand your question well but here is what I guess. You may want to load data from a .plist file and then fill in the UIPickerView.

Here is a sample code for loading a .plist file:

NSString *path = [[NSBundle mainBundle] bundlePath];
NSString *finalPath = [path stringByAppendingPathComponent:@"money.plist"];
NSDictionary *plistDictionary = [[NSDictionary dictionaryWithContentsOfFile:finalPath] retain];

Here is the tutorial for the UIPickerView:

vodkhang
thats loading a plist file into the app rigt ? ..how do i populate the uipicker .. lets say i have the following strings : one , two , three , four .. in the strings.plist file .
There is a tutorial below the code. Look at the link please
vodkhang