print( UIApplication.shared.statusBarFrame.width, UIApplication.shared.statusBarFrame.height )
print( UIApplication.shared.statusBarFrame.height)
print( self.navigationController?.navigationBar.frame)
获得屏幕大小
UIScreen.main.bounds
本文展示了如何使用Swift代码获取iOS设备的状态栏宽度和高度,并介绍了如何取得屏幕尺寸的方法。
2735

被折叠的 条评论
为什么被折叠?



