Uilabel function is used to display text
Inheritance relationship
UILabel-UIView
I. Common Properties of Uilabel
0. Create a Uilabel control
uilabel * label = [[ uilabel Alloc init ];
1. Display text
label text = @ "Jack"
2. Set the font size
label font = [ uifont Systemfontofsize : 13
3. Set text color
label textcolor = [ uicolor Redcolor
];
4. Set the alignment
label textalignment = nstextalignmentcenter
5. Set the number of lines of text (0 for word wrapping)
label numberoflines = 10 ;
6. Set line break mode
label linebreakmode = nslinebreakbywordwrapping
Two. Common ways to Uifont fonts
Ø+ (Uifont *) Systemfontofsize: (cgfloat) fontSize; system default Font
Ø+ (Uifont *) Boldsystemfontofsize: (cgfloat) fontSize; Bold body
Ø+ (Uifont *) Italicsystemfontofsize: (cgfloat) fontSize; Italic body
Basic use of iOS development UI Uilabel