前段时间遇到的问题,UIAactionsheet视图的遮罩效果。
自定义一个actionSheet:MineActionSheet,继承于UIActionSheet.添加代理事件:
.h文件
#import <UIKit/UIKit.h>
@protocol MineActionSheetDelegate <NSObject>
//alertSheet遮罩的剩余部分点击事件
- (void)touchCancel:(UIActionSheet *)actionSheet;
@end
@interface MineActionSheet : UIActionSheet
@property (nonatomic, retain) id <MineActionSheetDelegate> mineDelegate;
@end
.m文件
#import "MineActionSheet.h"
@implementation MineActionSheet
@synthesize mineDelegate;
- (id)initWithFrame:(CGRect)frame