NSBundle的使用

来源:互联网 发布:java打印 编辑:程序博客网 时间:2024/05/29 11:50

//      获取文件全路径

       NSBundle *bundle = [NSBundlemainBundle];

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

//        通过路径找到资源

        _imageData = [NSArrayarrayWithContentsOfFile:path];


0 0
原创粉丝点击