// display text
var myName:nsstring = " Wenqi pilotage Education Text Kai Pilotage Education text Start pilotage Education text start pilotage Education text start pilotage educational Wenqi Pilotage Education text-pilot education Wen Kai Pilotage Education text Start pilotage Education text start pilotage Education text start pilotage Education text start pilotage Education text start pilotage Education text start pilotage Education text start pilotage Education text start pilotage Education text start pilotage Education text start pilotage education ;
// font size
var font:uifont = uifont. systemfontofsize (a);
var size:cgsize = cgsizemake(self. View. Frame . width , Self . View . Frame . Height );
var rect:cgrect = myName. boundingrectwithsize (Size, options: nsstringdrawingoptions. Useslinefragmentorigin , Attributes: [nsfontattributename: Font], Context: Nil );
var Label:UILabel = UILabel();
label. Frame = CGRectMake (ten, a rect. ) size . width , rect. size . Height );
label. text = MyName;
label. NumberOfLines = 0 ;
label. Font = font;
self. View . Addsubview (label);
iOS Text Size setting