在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
默认center 模式 居中
btn.contentHorizontalAlignment = UIControl.ContentHorizontalAlignment.right
right 和 trailing效果一样
======= ======= ======= ======= ======= ======= ======= ======= ======= fill
======= ======= ======= ======= ======= ======= ======= ======= ======= leading 和 left 效果一样 if #available(iOS 11.0, *) { btn.contentHorizontalAlignment = UIControl.ContentHorizontalAlignment.leading } else { // Fallback on earlier versions }
======= ======= ======= ======= ======= ======= ======= ======= =======
======= ======= ======= ======= ======= ======= ======= ======= =======
======= ======= ======= ======= ======= ======= ======= ======= ======= |
请发表评论