Summary of my iOS issues

Source: Internet
Author: User

1 The Settitle,titlelabel difference of UIButton. How to get the pixel length of the label.

Other people's problems:

First of all, thank you very much for your answer. Secondly, I have a little doubt, as follows: effect comparison (handwriting button):
1, [But settitle:@ "test" forstate:uicontrolstatenormal];
Output: Currenttitlelabel: Test it, Currenttitle: Test it. The simulator button displays: Test
2, But.titlelabel.text = @ "Test";
Output: Currenttitlelabel: Test, Currenttitle: (null). No Display on simulator button
3, [But settitle:@ "test" forstate:uicontrolstatenormal];
But.titlelabel.text = @ "Test Two";
Output: Currenttitlelabel: Test Two, Currenttitle: Test a bit. Simulator button on display: Test two
4, But.titlelabel.text = @ "Test Two";
[But settitle:@ "test" forstate:uicontrolstatenormal];
Output: Currenttitlelabel: Test it, Currenttitle: Test it. The simulator button displays: Test
Do not understand the situation in 3! Solving......

Summary of my iOS issues

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.