一、基本使用 -基本使用 //按钮内部图片和文字对齐方式(靠左、居中、靠右) btn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;