IOS中UIActionSheet使用详解
IOS中UIActionSheet使用方法详解 一、初始化方法 - ( instancetype )initWithTitle:( NSString *)title delegate:( id < UIActionSheetDelegate >)delegate cancelButtonTitle:( NSString *)cancelButtonTitle destructiveButtonTitle:( NSString *)destructiveButtonTitle otherButtonTitles:( NSString *)otherButtonTitles, ...; 参数说明: title:视图标题 delegate:设置代理 cancelButtonTitle:取消按钮的标题 destructiveButtonTitle:特殊标记的按钮的标题 otherButtonTitles:其他按钮的标题 二、常用方法和属性介绍 @property ( nonatomic , copy ) NSString *title; 设置标题 @property ( nonatomic ) UIActionSheetStyle actionSheetStyle; 设置风格,枚举如下: typedef NS_ENUM(NSInteger, UIActionSheetStyle) {