Ios--uibutton picture on top, text in the next

Source: Internet
Author: User

UIButton Under normal circumstances is the picture in the left, the text in the right, adjust the position to become the picture on, the text in the next, this more commonly used

- (void) setup{//Adjust pictureself.imageView.xm_x =0; Self.imageView.xm_y=0; Self.imageView.xm_width=Self.xm_width; Self.imageView.xm_height=Self.imageView.xm_width; //Adjust textself.titleLabel.xm_x =0; Self.titleLabel.xm_y=Self.imageView.xm_height; Self.titleLabel.xm_width=Self.xm_width; Self.titleLabel.xm_height= Self.xm_height-self.titleLabel.xm_y;}

Ios--uibutton picture on top, text in the next

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.