I tried to break a label according to the text that contains. The code is below:
mnhmeioLabel.numberOfLines=0; mnhmeioLabel.lineBreakMode=NSLineBreakByWordWrapping; [mnhmeioLabel sizeToFit]; Although it seems to work only sometimes. I added a snapshot of my problem and what i want.
The problem is in red box that breaks the line with a way that i cannot understand. The result that i want is in the yellow box.
[mnhmeioLabel sizeToFit]just after setting the text