float scale = [[UIScreenmainScreen] scale];//得到设备的分辨率[imageView setContentScaleFactor:[[UIScreen mainScreen]scale]];将设备的分辨率赋给imageView。好像是这样,当scale=1的时候,不缩放,当scale=2就放大二倍,当scale=0。5,宽高就成为原来一半了