我有一个UILabel应该是一个多行标签,但事实并非如此。这就是我做的方式
[self.lblMessage setAutoresizingMask:UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleWidth];
[self.lblMessage setCenter:self.view.center];
self.lblMessage.textAlignment = NSTextAlignmentCenter;
_lblMessage.lineBreakMode = NSLineBreakByWordWrapping;
_lblMessage.numberOfLines = 0;
[self.view addSubview:self.lblMessage];