1、从底部弹出
UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"恭喜通关" delegate:nil cancelButtonTitle:@"取消" destructiveButtonTitle:@"确定" otherButtonTitles:@"其他", nil];
[sheet showInView:self.view];
2、弹出在中间
// 创建弹框
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"恭喜" message:@"通关了!!!!敬请期待!!!!" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"好的", nil];
[alert show];
UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"恭喜通关" delegate:nil cancelButtonTitle:@"取消" destructiveButtonTitle:@"确定" otherButtonTitles:@"其他", nil];
[sheet showInView:self.view];
2、弹出在中间
// 创建弹框
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"恭喜" message:@"通关了!!!!敬请期待!!!!" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"好的", nil];
[alert show];