let batItem = self.tabBar.items?[2]
batItem?.imageInsets = UIEdgeInsets(top: 8, left: 0, bottom: -8, right: 0)
UIEdgeInsets 设置对称就可以了
let batItem = self.tabBar.items?[2]
batItem?.imageInsets = UIEdgeInsets(top: 8, left: 0, bottom: -8, right: 0)
UIEdgeInsets 设置对称就可以了
本文标题:UITabBar设置中间大图按钮,点击变小
本文链接:https://www.haomeiwen.com/subject/lvvnrktx.html
网友评论