<分区>
我想知道在 UIActionSheet
中显示禁用的选项是否是一个错误?
根据 Apple 指南:
Use an action sheet to: Provide alternative ways to complete a task. An action sheet lets you to provide a range of choices that make sense in the context of the current task, without giving these choices a permanent place in the UI.
所以我理解最好在某些上下文中添加按钮并在上下文更改时将其删除。在这里,我正在寻找一些有经验的开发人员的答案或反馈。
最佳答案
操作表提供上下文相关的操作。如果某项操作在某些情况下不可用,则不应显示该操作。因此,在您思考时,适本地添加和删除操作,而不是尝试禁用某些操作。
关于ios - 带有禁用按钮的 UIActionSheet?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24891361/