//button的title向左靠
let button = UIButton()
button.titleEdgeInsets = UIEdgrInsetsMake(0, -80, 0, 0)
self.view.addSubview(button)
//button的title向左靠
let button = UIButton()
button.titleEdgeInsets = UIEdgrInsetsMake(0, -80, 0, 0)
self.view.addSubview(button)
本文标题:设置button的title位置
本文链接:https://www.haomeiwen.com/subject/nhzdettx.html
网友评论