alien-house
5/6/2017 - 11:48 PM

get the width and height of screen in Swift

get the width and height of screen in Swift

let frameWidth: CGFloat = self.view.frame.width
let frameHeight: CGFloat = self.view.frame.height
let statusBarHeight: CGFloat = UIApplication.shared.statusBarFrame.height