【发布时间】:2015-10-19 13:25:40
【问题描述】:
这是我要显示UIActionSheet 的代码。
actionSheet = [[UIActionSheet alloc] initWithTitle:NSLocalizedString(@"updateresponseforrecurring", nil) delegate:self cancelButtonTitle:NSLocalizedString(@"Cancel", nil) destructiveButtonTitle:nil otherButtonTitles:
NSLocalizedString(@"updateresponseonlyforthis", nil),
NSLocalizedString(@"updateresponseforallactivities", nil),
nil];
actionSheet.tag = 2;
[actionSheet showInView:[UIApplication sharedApplication].keyWindow];
这就是我用这个得到的:
显然,第二个选项更长,因此尺寸会变小以适应宽度。
但是我希望所有选项都使用相同的字体大小,这让我有了多行。还尝试使用UIAlertController,但无法设置多行文本。
如何做到这一点?
【问题讨论】:
标签: ios uiactionsheet uialertcontroller