All ASCII codes can be represented by a "\" plus a number (typically a 8 binary number). and C in the definition of some letters before the "\" to indicate the common ones can not display ASCII characters, such as \0,\t,\n, etc., is called the escape character, because the subsequent character, is not its original ASCII character meaning.
All the escape characters and their corresponding meanings:
| Escape character |
Significance |
ASCII code value (decimal) |
| \a |
Bell (BEL) |
007 |
| \b |
BACKSPACE (BS) to move the current position to the previous column |
008 |
| \f |
Page Break (FF), moving the current position to the beginning of the next page |
012 |
| \ n |
Line Break (LF), move the current position to the beginning of the next line |
010 |
| \ r |
Enter (CR) to move the current position to the beginning of the bank |
013 |
| \ t |
Horizontal tab (HT) (jumps to the next tab position) |
009 |
| \v |
Vertical tabulation (VT) |
011 |
| \\ |
Represents a backslash character ' \ ' |
092 |
| \‘ |
Represents a single quotation mark (apostrophe) character |
039 |
| \" |
Represents a double-quote character |
034 |
| \? |
Represents a question mark |
063 |
| / |
Null character (NULL) |
000 |
| \ooo |
Any character represented by a 1 to 3-bit octal number |
Three-bit octal |
| \xhh |
Any character represented by 1 to 2 hexadecimal digits |
Three-bit hexadecimal |
Note: Differentiate, Slash: "/" with backslash: "\", here is not interchangeable, so in the stitching of special characters, you can use \ in front of special characters to add on the implementation of the character stitching;
Example:
_titlelab = [[UILabel alloc]init];
_titlelab. Font=[uifont systemfontofsize:];
_titlelab.< span class= "s2" >numberoflines = 0;
_titlelab . Text = @ "Dear Members: \n\n\t The file in this directory is a variety of data map of the design source files, most of the content is not available to download and open the mobile phone, download and view method: \n\n\t, copy the following URL, through, QQ and mail to the PC computer, QQ, etc. \n\t two, Copy the URL to the PC-side browser, open the URL, click the Copy button below to copy this link; \n\t three, choose the corresponding data to download, download the corresponding format needs corresponding software to open, or let the advertising design company open, modify and produce printing; \n\t. Thank you again. Please contact qq:727130525 If you have any questions about the design drawings.
< Span class= "S13" > < Span class= "S5" > /span> _titlelab. Frame = cgrectmake (20 0 200
[self. View addsubview:_titlelab];
Escape characters for iOS special characters