我需要将UITabBar
的高度改为95。我可以在旧版本的iOS Swift中完成这个操作。以下是在旧版本中工作的代码:
override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()
tabBar.frame.size.height = 95
tabBar.frame.origin.y = view.frame.height - 95
menuButton.frame.origin.y = self.view.bounds.height - tabBar.frame.size.height - 10
shadowBtn.frame.origin.y = self.view.bounds.height - tabBar.frame.size.height - 15
}