I have this code:
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(25, 25, 275, 40)];
label.text = @"I am learning Objective-C for the\n very first time!";
[self.view addSubview:label];
But for some reason it doesn't insert a new line... how do I put a line break in an UILabel
?
Please check that
UILabel *yourLabel;
yourLabel.numberoflines = 0
or not..
if it is not like this please set it to zero
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With