views:

442

answers:

2

hi....

what is the code for the line break in the iPhone notification alert message or plain text on

SMS ?

Thanks

+1  A: 

Have you tried '\n'?

Dylan Copeland
A: 

Indeed with \n

UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"title" message:@"message\nwith linebreak" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alertView show];
[alertView release];

This shows an alert with a nice line break.

drvdijk