</pre><br /><pre class="lang-c prettyprint prettyprinted" style="margin-top: 0px; margin-bottom: 0px; font-size: 13px; line-height: 19.5px; padding: 0px; white-space: pre-wrap; word-wrap: break-word; background-color: rgb(255, 255, 255);"><pre name="code" class="objc">button.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; //水平方向 button.contentHorizontalAlignment = <span style="white-space: pre-wrap; font-family: Arial, Helvetica, sans-serif;">UIControlContentVerticalAlignmentTop //垂直方向</span> ;
最后
以上就是安详台灯最近收集整理的关于UIButton设置 textAlignment 属性的方法的全部内容,更多相关UIButton设置内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复