加载图片的两种方式:

1.有缓存  UIImage *img = [UIImage imageWithNamed:@"11"];

2.无缓存  NSString *path = [[NSBundle mainBundle] pathForResource:@"11" ofType:nil];

    UIImage *img = [[UIImage alloc] initWithContentsOfFile:path];

posted on 2015-10-27 17:26  怡情_老二  阅读(309)  评论(0编辑  收藏  举报