Lan Yi IOS

Source: Internet
Author: User

Today, the three ways to splice strings are: 1, nsstring *str c = [NSString stringWithFormat: @ "%@%f", Stra, STRB]; Display the two strings in parallel;

2,? NSString *str c = [STRA:STRINGBYAPPEDINGSTRING:STRB]; In a string followed by a string;

3,? NSString *str c = [Stra:stringbyappedingformat: "%@%f", Stra, 3.1415926]; Different types of quantities can be spliced into strings;

Then, according to the content of the study, a relatively advanced calculator, interspersed with a number of different buttons in the same position, call tag, as well as the string and integer and non-integer number of the mutual conversion, and directly through the storyboard directly add the label, And the use of this label.

Learning to feel: When you feel you are using that data type this piece is still quite confused; selfl.abel.text=

The file format to the right of the equals sign is not particularly clear.

Previous calculator run out of diagram?

Lan Yi IOS

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.