IOS Swift3.0 获取导航栏跟状态栏的高度

print(  UIApplication.shared.statusBarFrame.width, UIApplication.shared.statusBarFrame.height )


        print( UIApplication.shared.statusBarFrame.height)
        print( self.navigationController?.navigationBar.frame)


获得屏幕大小

UIScreen.main.bounds

你可能感兴趣的:(IOS)