NSString *path = [[NSBundle mainBundle] pathForResource:@"资源名称" ofType:@"资源类型(后缀)"];
NSURL *url = [NSURL fileURLWithPath:path];
NSURL *url = [[NSBundle mainBundle] URLForResource:@"资源名称" withExtension:nil];
NSString *path = [[NSBundle mainBundle] pathForResource:@"资源名称" ofType:@"资源类型(后缀)"];
NSURL *url = [NSURL fileURLWithPath:path];
NSURL *url = [[NSBundle mainBundle] URLForResource:@"资源名称" withExtension:nil];
本文标题:从项目中加载路径文件
本文链接:https://www.haomeiwen.com/subject/bsoajttx.html
网友评论