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