Swift获取屏幕宽高

let screenWidth = UIScreen.main.bounds.width

let screenHeight = UIScreen.main.bounds.height

你可能感兴趣的:(Swift获取屏幕宽高)