CGFloat width = [[UIScreen mainScreen] bounds].size.width; 转载于:https://www.cnblogs.com/SimonGao/p/5017504.html