让button的文字换行和左对齐

btn.titleLabel.numberOfLines = 0;
 
btn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
 
btn.titleEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);
posted @ 2017-08-10 18:11  柠檬树下柠檬果  阅读(698)  评论(0编辑  收藏  举报