iPhone Disabling UIActionSheet buttons

后端 未结 7 909
梦谈多话
梦谈多话 2020-12-10 16:01

I want to disable buttons in the UIAction sheet and enable them after a certain condition is true. How do I achieve this? Any ideas?

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-10 16:07

    UIActionSheet is not intended for customizing. It should display actual set of available options. It should not change button's availability while on top. Just remove unused buttons, or use custom view instead

提交回复
热议问题