UIKit

imageName和imageWithContentOfFile

2016-11-03  本文已影响71人  Paulpang

总结:

 NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"picture.png" ofType:nil];
  self.imageView.image = [UIImage imageWithContentsOfFile:imagePath];

上一篇下一篇

猜你喜欢

热点阅读