I would like to write two lines in my iphone label, what I read I should do is:
NSString *received = [[NSString alloc] initWithFormat:@"Rocio\n,%@",[[NSString alloc] initWithData:receivedData encoding:NSASCIIStringEncoding]];
self.label.text = received;
So, the “\n” is the LF.
Why is not it working?
By default label can display only 1 line of text. Use
setNumberOfLines:method to set the number of lines you need.