0
A
回答
1
是因为它takes NSString *
您需要使用\r
UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:NSLocalizedString(@"First Line\rSecond Line", nil)
delegate:self
cancelButtonTitle:NSLocalizedString(@"_CANCEL", nil)
destructiveButtonTitle:nil
otherButtonTitles:NSLocalizedString(@"_USE_SYSTEM_LANGUAGE", nil), NSLocalizedString(@"_ENGLISH", nil), NSLocalizedString(@"_ARABIC", nil), nil];
是复制粘贴&我用NSLocalizedString
,但你NCAT使用NSString
+0
乐意帮忙:) – 2014-10-16 16:08:43
+1
摆脱'\ r'两边的空间。顺便说一句 - '\ n'也可以。 – rmaddy 2014-10-16 16:42:10
+0
@rmaddy昨天我在iOS 8下有'\ n'越野车,'\ r'解决了我的问题。 – 2014-10-16 22:25:04
相关问题
- 1. UIActionSheet/UIAlertController多行文本
- 2. 问题与UIActionSheet
- 3. 如何左对齐UIActionSheet的标题
- 4. UIActionSheet需要在2行中实现按钮标题
- 5. UIACtionSheet委托问题
- 6. 显示多个UIActionSheet
- 7. jQGrid多行标题
- 8. jqgrid:多行标题
- 9. Thickbox - 多行标题
- 10. modalView问题中的iPad UIActionSheet
- 11. UIActionSheet按钮颜色问题
- 12. UIActionSheet问题与FBConncet {iPhone SDK}
- 13. Ipad的ShareKit的UIActionsheet问题
- 14. 需要更多关于UIActionSheet
- 15. iPad的UIActionSheet表示多次
- 16. UIActionSheet使多个UIButton变化
- 17. 多行标题为ApplicationBarIconButton
- 18. GWT DataGrid多行标题
- 19. visnetwork中的多行标题
- 20. LaTeX在MATLAB多行标题
- 21. 多行标题与多个斜体字
- 22. 有没有办法在UIActionSheet中更改标题字体大小?
- 23. Objective C UIActionSheet是否可以使用NSArray填充标题?
- 24. 更改UIActionSheet标题字符串的字体类型和大小
- 25. UIActionSheet buttonIndex
- 26. 如何在散景中创建多行标题标题?
- 27. 如何制作多行闪亮的仪表板标题标题?
- 28. React Native多行标题标题可能吗?
- 29. ScrollView中的UIActionSheet定位问题
- 30. iPhone:在UIActionSheet问题中显示UIWebview
你尝试把一个'\ N'在您的标题? – rmaddy 2014-10-16 15:47:36
你需要使用** \ r **,因为它是NSString *,它的新行是\ r(carrage-return) – 2014-10-16 15:56:32