加载图片的两种方式:
1.有缓存 UIImage *img = [UIImage imageWithNamed:@"11"];
2.无缓存 NSString *path = [[NSBundle mainBundle] pathForResource:@"11" ofType:nil];
UIImage *img = [[UIImage alloc] initWithContentsOfFile:path];
加载图片的两种方式:
1.有缓存 UIImage *img = [UIImage imageWithNamed:@"11"];
2.无缓存 NSString *path = [[NSBundle mainBundle] pathForResource:@"11" ofType:nil];
UIImage *img = [[UIImage alloc] initWithContentsOfFile:path];