+ (NSDictionary *)readFromArchive:(NSString *)aFileName {
网站建设哪家好,找成都创新互联!专注于网页设计、网站建设、微信开发、微信小程序、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了宜君免费建站欢迎大家使用!
NSString *errorDesc = nil;
NSPropertyListFormat format;
NSString *plistPath = [[NSBundlemainBundle]pathForResource:aFileName
ofType:@"plist"];
NSData *plistXML = [[NSFileManagerdefaultManager]
contentsAtPath:plistPath];
NSDictionary *temp = (NSDictionary *)[NSPropertyListSerialization
propertyListFromData:plistXML
mutabilityOption:NSPropertyListMutableContainersAndLeaves
format:&format errorDescription:&errorDesc];
if (!temp) {
NSLog(@"%s at line %d with message: %@", __FUNCTION__, __LINE__, errorDesc);
}
return temp;
}
当前名称:Plist文件读取
标题网址:https://www.cdcxhl.com/article28/jghecp.html
成都网站建设公司_创新互联,为您提供Google、ChatGPT、网站内链、、动态网站、外贸建站
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联