how to add linebreak in iPhone notification alert message or plain text on SMS

后端 未结 2 658
孤独总比滥情好
孤独总比滥情好 2021-01-25 00:58

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

SMS ?

Thanks

相关标签:
2条回答
  • 2021-01-25 01:18

    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.

    0 讨论(0)
  • 2021-01-25 01:19

    Have you tried '\n'?

    0 讨论(0)
提交回复
热议问题