摘要:
#import "ViewController.h" #import @interface ViewController () /** * 背景图片 */ @property (weak, nonatomic) IBOutlet UIImageView *bgImageView; /** 播放器 */ @property (nonatomic, strong) AVPlayer *p... 阅读全文
摘要:
@implementation ViewController /** 图片的两种加载方式: 1> imageNamed: a. 就算指向它的指针被销毁,该资源也不会被从内存中干掉 b. 放到Assets.xcassets的图片,默认就有缓存 c. 图片经常被使用 2> imageWithContentsOfFile: ... 阅读全文