及需要遵守的代理 @interface CustomerImageViewController ()<UICollectionViewDataSource,UICollectionViewDelegate,UIActionSheetDelegate UIImageView *imgView = (UIImageView*)[gesture view]; _tempImage = imgView.image; } } 实现UIActionSheetDelegate 代理方法 #pragma - mark - UIActionSheetDelegate - (void)actionSheet:(UIActionSheet*)actionSheet didDismissWithButtonIndex
= UIAlertViewStyleDefault; [alert show]; } // 需要遵守协议UIAlertViewDelegate来响应点击事件 #pragma mark - UIActionSheetDelegate nil]; alert.alertViewStyle = UIAlertViewStylePlainTextInput; [alert show]; } #pragma mark - UIActionSheetDelegate nil]; alert.alertViewStyle = UIAlertViewStyleSecureTextInput; [alert show]; } #pragma mark - UIActionSheetDelegate destructiveButtonTitle:nil otherButtonTitles:@"查看",@"评论", nil]; [sheet showInView:self.view]; } #pragma mark - UIActionSheetDelegate
#import "Reachability.h" @interface JRViewController ()<UIActionSheetDelegate> @property(nonatomic,strong
IOS中UIActionSheet使用方法详解 一、初始化方法 - (instancetype)initWithTitle:(NSString *)title delegate:(id<UIActionSheetDelegate
class ViewController: UIViewController ,UIImagePickerControllerDelegate,UINavigationControllerDelegate,UIActionSheetDelegate
IOS官方提供的以下方式对UIActionView进行实例化: - (instancetype)initWithTitle:(NSString *)title delegate:(id<UIActionSheetDelegate
. // #import <UIKit/UIKit.h> @interface OCViewController : UIViewController <UIActionSheetDelegate>