ios 按钮图文上下排布

2019-07-20  本文已影响0人  米开朗骑騾

参考

[self.photoBtn setTitleEdgeInsets:UIEdgeInsetsMake(self.photoBtn.imageView.frame.size.height +10 ,-self.photoBtn.imageView.frame.size.width, 0.0,0.0)];
    [self.photoBtn setImageEdgeInsets:UIEdgeInsetsMake(-20, 0.0,0.0, -self.photoBtn.titleLabel.intrinsicContentSize.width)];
上一篇 下一篇

猜你喜欢

热点阅读