-(void)viewDidLoad
{
[super viewDidLoad];
//uiimage
UIImage *img = [[UIImageView alloc]initWithImage:img];
//image view
self.imageView = [[UIImageView alloc]initWithImage:img];
//full screen
self.imageView.frame = self.view.bounds;
//设置展示模式
self.imageView.contentMode = UIViewContentModeScaleAspectFit;
self.imageView.center = self.view.center;
[self.view addSubView:self.imageView];
}