代码实现
@Property ( nonatomic,strong)IBOutlet UIButton *btn;
self.btn = [UIButton buttonWithType:UIButtonTypeSystem];
self.btn.frame = CGRectMake(20,100,100,46);
[self.btn setTitle:@”Click me” forState:UIControlStateNormal];
[self.view addSubview:self.btn];
[self.btn addTarget:self action:@selector(custom:) forControlEventTouchUpInside];
ActionSheet(iOS8中已停用)