UIActionSheet的使用
- 作者: 约翰就越深v
- 来源: 51数据库
- 2022-08-17
//UIActionSheet————————————————————————————————————————————————————————————————
- (void) showInfo:(NSNotification *) notice{
// NSLog(@"键盘马上出来了,%@",notice.userInfo);
// UIActionSheet * action=[[UIActionSheet alloc] initWithTitle:str delegate:self cancelButtonTitle:@"cancle" destructiveButtonTitle:@"destructive" otherButtonTitles: @"bt1",@"bt2",@"bt3",@"bt4",nil];
// [action showInView:self.view];
}
//UIActionSheet代理方法
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
// NSLog(@"%li", buttonIndex);
}
推荐阅读
