从本地plist文件中加载数据
//user code
NSBundle *bundle = [NSBundle mainBundle];
NSString *plistPath = [bundle pathForResource:@"event" ofType:@"plist"];
//获取本地文件列表 NSArray
events = [[NSArray alloc] initWithContentsOfFile:plistPath];
//user code
NSBundle *bundle = [NSBundle mainBundle];
NSString *plistPath = [bundle pathForResource:@"event" ofType:@"plist"];
//获取本地文件列表 NSArray
events = [[NSArray alloc] initWithContentsOfFile:plistPath];
本文标题:如何从本地plist文件中加载数据
本文链接:https://www.haomeiwen.com/subject/tdguuttx.html
网友评论