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
2010-07-28 08:59:24
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 .
2010-07-28 09:19:31
There is a tutorial below the code. Look at the link please
vodkhang
2010-07-28 10:23:58