Chapter II Fundamentals of Objective programming
1.objective-c is an object-oriented development language that was first based on the Smaltalk language.
The basic data type of 2.OC is divided into int type float type bool type double type, etc.
The 3.sel selector is implemented by a selector called selector.
SEL Variable name = @selector (method name);
SEL Variable name =nsselectorfromstring (string of method name)
NSString * Variable name =nsstringfromselector (sel parameter)
4. Private string constants declared in. m and. mm files
public string constants are declared in the. h file
5. String manipulation
Rangofstring find the location of substrings in a string
Substringtoindex intercept the start position to the position of the string
Substringfromindex the end of a string starting at the specified position
Substringwithrange A string of a specified length from the starting point
stringWithFormat formatted string equivalent to sprintf ()
Componentsseparatedbystring delimited string, delimited by a character
Cstringusingencoding the conversion of strings to characters
Isequaltostring comparison between strings, not by = comparison
6. Circular control Statements
For () {}
if () {} else{}
do {}while ()
while ()
Switch () {case1:break; ...}
Essentials of iOS Basics