获取本地资源文件的两种方式
//2种方式获取文件
NSBundle *bundle = [NSBundlemainBundle];
//第一种
NSString *path = [[bundle resourcePath] stringByAppendingPathComponent:@"city.plist"];
//第二种
NSString *path = [bundle pathForResource:@"city"ofType:@"plist"];
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。