首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >使用Objective-C在iOS警报消息中添加换行符

使用Objective-C在iOS警报消息中添加换行符
EN

Stack Overflow用户
提问于 2011-11-10 09:41:19
回答 1查看 16K关注 0票数 27

一个低级的问题。

我有一个警告:

"alertMessage" = "This is my message:    1  2  3.  And another one: 5 6 7";

我用下面的代码来显示:

NSString *asd = NSLocalizedString (@"alertMessage", @"");
NSString *alertTitle = NSLocalizedString (@"alertTitle", @"");

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:alertTitle message:asd delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil, nil];

如何实现换行符“和另一个:”从第二行开始。

谢谢!

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/8074040

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档