zoukankan      html  css  js  c++  java
  • 读取plist

    - (NSArray *)imageData

    {

        if (_imageData == nil) { // 从未初始化

            // 初始化数据

            // File : 全路径

            // NSBundle : 一个NSBundle代表一个文件夹

            // 利用mainBundle就可以访问软件资源包中的任何资源

            NSBundle *bundle = [NSBundle mainBundle];

            

            //  获得imageData.plist的全路径

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

            

            _imageData = [NSArray arrayWithContentsOfFile:path];

        }

        return _imageData;

    }

  • 相关阅读:
    11.26
    数组
    JavaScript
    2018.11.26
    input标签
    HPH 函数
    jQuery
    19/1/3数组
    2018/12/26//循环体
    12/25
  • 原文地址:https://www.cnblogs.com/supper-Ho/p/6203474.html
Copyright © 2011-2022 走看看