wealon
我是wealon 专注于iOS 移动App开发

导航

 

NSMutableArray *images = [NSMutableArray array];

    for (int i = 0; i<count ; i ++) {

        NSString *imageName = [NSString stringWithFormat:@"%@_%02d.jpg",action,i];

        NSString *path = [[NSBundle mainBundle] pathForResource:imageName ofType:nil];

        // NSLog(@"path=%@",path);

        // UIImage *image = [UIImage imageNamed:imageName];  // 有缓存

        UIImage *image = [[UIImage alloc] initWithContentsOfFile:path];  // 没有缓存

        [images addObject:image];

    }

 

posted on 2014-11-13 14:55  wealon  阅读(204)  评论(0编辑  收藏  举报