如何在iPhone通知警报消息或SMS上的纯文本中添加换行符 [英] how to add linebreak in iPhone notification alert message or plain text on SMS

查看:239
本文介绍了如何在iPhone通知警报消息或SMS上的纯文本中添加换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iPhone通知提示消息中的换行符代码是什么?

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

短信?

谢谢

推荐答案

确实用\ 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.

这篇关于如何在iPhone通知警报消息或SMS上的纯文本中添加换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆