iphone - 如何自定义UIActionSheet上的Button?

标签 iphone uiactionsheet

我想更改UIActionSheet按钮的宽度和高度

UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:nil delegate:self cancelButtonTitle:nil destructiveButtonTitle:nil otherButtonTitles:@**"Done"**,nil];

最佳答案

我建议不要这样做。 UIActionSheet 中的按钮大小和形状是出于可访问性原因而设计的。它们在平台上的所有应用程序中也是一致的,因此用户对它们很熟悉。来自 iPhone Human Interface Guidelines :

Because users are accustomed to the appearance and behavior of these views, it’s important to use them consistently and correctly in your application.

如果更改这些大小,不仅可能会降低应用程序的可用性,而且可能会违反 Apple 的 Human Interface Guidelines ,导致您的申请在提交时被拒绝。

关于iphone - 如何自定义UIActionSheet上的Button?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1858318/

相关文章:

iphone - Iphone OS 3.0 上的 PJSIP 如何移植声音?

iphone - 如何在 iPhone 上创建多按钮确认?

ios - 是否可以编辑 UIAlertAction 标题字体大小和样式?

iphone - UIActionSheet,取消按钮运行方法

ios - 保存UICollectionView的索引路径以在ActionSheet中使用

iphone - UINavigationController popViewController 正在弹出所有内容!

iphone - 如何在 iOS iPhone 应用程序上以编程方式轻松连续播放 .m4a 文件

iphone - MBProgressHUB 不显示在模态视图中

iphone - 如何通过项目模板定义向 AppDelegate.m 添加方法

ios - 在带有IOS 6的iPad上展示aN操作表时崩溃