One: The default is the left picture right text
Two: Left text right picture (direct copy code to project can)
[Btn settitleedgeinsets:uiedgeinsetsmake (0,-btn.imageview.size.width, 0, Btn.imageView.size.width)];
[Btn setimageedgeinsets:uiedgeinsetsmake (0, btn.titleLabel.bounds.size.width, 0,-btn.titlelabel.bounds.size.width )];
Three: The picture below the text (direct copy code to the project)
Btn.contenthorizontalalignment = uicontrolcontenthorizontalalignmentcenter;//to center the picture and text horizontally
[btn Settitleedgeinsets:uiedgeinsetsmake (Btn.imageView.frame.size.height,-btn.imageview.frame.size.width, 0.0,0.0)] ;//text distance from the top border to increase the height of imageview, distance from the left to reduce the width of the ImageView, the distance from the bottom and right border
[btn setimageedgeinsets:uiedgeinsetsmake (0.0, 0.0,0.0,-btn.titlelabel.bounds.size.width)];//picture distance from the right border to reduce the width of the picture, others