btn.contentHorizontalAlignment = UIControlContentHorizontalAlignment.right
按钮文字居右
原文:http://www.cnblogs.com/xuaninitial/p/6508872.html