Line break in UILabel?

newline, objective-c, uikit

Solution

Please check that

   UILabel *yourLabel;
   yourLabel.numberoflines = 0

or not..

if it is not like this please set it to zero

Problem

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`?

Original source