按钮文字居右

btn.contentHorizontalAlignment = UIControlContentHorizontalAlignment.right

 

 

 

btn.contentEdgeInsets = UIEdgeInsetsMake(0,10, 0, 0); //距离边框10个像素

posted @ 2017-03-06 10:48  xuanInitial  阅读(335)  评论(0编辑  收藏  举报