Detailed use:
UILabel *label = [[Uilabelalloc] initwithframe:cgrectmake (0, 0, 75, 40)]; Declare Uilbel and specify its position and length width
Label.backgroundcolor = [Uicolorclearcolor]; Sets the label's background color, which is set to a transparent color.
Label.font = [Uifont fontwithname:@ "Helvetica-bold" size:13]; Sets the font and font size of the label.
Label.transform = Cgaffinetransformmakerotation (0.1); Set the rotation angle of a label
Label.text = @ "HelloWorld"; Set the text that the label displays
Label.textcolor = [Uicolorwhitecolor]; Set the color of text
Label.shadowcolor = [uicolorcolorwithwhite:0.1falpha:0.8f]; Sets the shadow color and transparency of the text.
Label.shadowoffset = Cgsizemake (2.0f, 2.0f); Sets the tilt angle of the shadow.
Label.textalignment = Uitextalignmentcenter; Sets the position of the text to be displayed in the label, centered here.
Line wrapping: The following line breaks enable multiple lines of display, but requires a label to be of sufficient width.
Label.linebreakmode = Uilinebreakmodewordwrap; Specify line break mode
Label.numberoflines = 2; Specify the number of rows for a label
The rotation of the lable
Label.transform = cgaffinetransformmakerotation (0.2); Set the rotation angle of a label
Detailed use of IOS uilabe and special effects