如何在UIActionSheet上自定义Button? [英] How to customise the Button on UIActionSheet?

查看:101
本文介绍了如何在UIActionSheet上自定义Button?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改 width& UIActionSheet按钮的高度等等

I want to change width & height, etc. of the button of UIActionSheet

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


推荐答案

我建议不要这样做。 UIActionSheet中的按钮大小和形状按照可访问性原因进行设计。它们在平台上的所有应用程序中也是一致的,因此用户熟悉它们。来自 iPhone人机界面指南

I would suggest against doing this. The button sizes and shapes in a UIActionSheet are designed the way they are for accessibility reasons. They are also consistent across all applications on the platform, so users are familiar with them. From the 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的人机界面指南,导致您的申请在提交时被拒绝。

If you change these sizes, not only might you make your application less usable, but that may violate Apple's Human Interface Guidelines, leading to a rejection of your application when submitted.

这篇关于如何在UIActionSheet上自定义Button?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆