ScreenSize
let screenSize: CGRect = UIScreen.mainScreen().bounds
let screenWidth = screenSize.width
let screenHeight = screenSize.height
general func:
func getScreenSize() ->CGRect {
return UIScreen.mainScreen().bounds
}
func getScreenWidth() ->CGFloat {
let screenSize: CGRect = UIScreen.mainScreen().bounds
return screenSize.width
}
func getScreenHeight() ->CGFloat {
let screenSize: CGRect = UIScreen.mainScreen().bounds
return screenSize.height
}