开发者

How to populate UIPickerView with .plist file?

I want to populate one.plist files from a num开发者_C百科ber of .plist files as per the user selection . How to populate UIPickerView with a .plist file ?


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];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜