获取本地资源文件的两种方式

//2种方式获取文件ide

NSBundle *bundle = [NSBundlemainBundle];spa

//第一种ci

NSString *path = [[bundle resourcePath] stringByAppendingPathComponent:@"city.plist"];string


//第二种it

NSString *path = [bundle pathForResource:@"city"ofType:@"plist"];class

相关文章
相关标签/搜索