1.
self.contentMode = UIViewContentModeScaleAspectFill; self.clipsToBounds = YES;
http://blog.csdn.net/yuanpeng1014/article/details/70888584