如下
let screenBounds:CGRect = UIScreen.mainScreen().bounds
SCREEN_WIGHT = screenBounds.size.width //屏幕宽
SCREEN_HEIGHT = screenBounds.size.height //屏幕高
let screenBounds:CGRect = UIScreen.mainScreen().bounds
SCREEN_WIGHT = screenBounds.size.width //屏幕宽
SCREEN_HEIGHT = screenBounds.size.height //屏幕高