UiActionSheet为IOS提供的操作表:
UIActionSheet的声明:
其他实例化的方法和属性:
UIActionSheet按键的事件监听需要通过代理UIActionSheetDelegate:
UIActionSheetDelegate事件监听的函数(UIActionSheetDelegate代理是通过下标来确定按键点击事件的,下标的顺序为:红色的删除按键destructiveButton->取消按键cancelButton->自定义按键,按照上面的顺序从0开始排序,如果没有设置某一按键则不占下标):
UIActionSheetDelegate中其他常用的方法: