我想更改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/