//屏幕的宽度 CGFloat screenW=[UIScreen mainScreen].bounds.size.width; 转载于:https://www.cnblogs.com/liuwj/p/6477637.html