当使用 UIAlertController
时,如果我想呈现一个带有空标题和空消息的 UIActionSheet
,标题和/或预期位置的框架消息仍然存在。
我如何更改它以便我只显示一个 ActionSheet
内容如下:
设置
登出
取消
?
谢谢!
最佳答案
当我使用这段代码创建 UIAlertController 时,我没有标题间距。
[UIAlertController alertControllerWithTitle:nil
message:nil
preferredStyle:UIAlertControllerStyleActionSheet];
您是为标题和消息传递 nil 还是空字符串?
关于ios - 如何在 UIAlertController 中隐藏标题/消息框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29777342/