首页 > 移动平台 > 详细

菜鸟ios开发

时间:2015-05-31 01:17:22      阅读:188      评论:0      收藏:0      [点我收藏+]

- (NSArray *)groups

{

    if (_groups == nil) {

       // NSArray *dictArray = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"friends.plist" ofType:nil]];

        NSString *path = [[NSBundle mainBundle]pathForResource:@"friends.plist" ofType:nil];

        NSArray *dictArray = [[NSArray alloc]initWithContentsOfFile:path];

        

        NSMutableArray *groupArray = [NSMutableArray array];

        for (NSDictionary *dict in dictArray) {

            CHFriendGroup *group = [CHFriendGroup groupWithDict:dict];

            [groupArray addObject:group];

        }

        

        _groups = groupArray;

    }

    return _groups;

}

//懒加载

菜鸟ios开发

原文:http://www.cnblogs.com/software00/p/4541299.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!