// 建立彈框spa
從底部彈出,通常用於危險操做it
UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"恭喜通關" delegate:nil cancelButtonTitle:@"取消" destructiveButtonTitle:@"肯定" otherButtonTitles:@"其餘", nil];
[sheet showInView:self.view];
io
從中間彈出view
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"恭喜" message:@"通關了!!!!敬請期待!!!!" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"好的", nil];
alert.tag = 10;
[alert show];vi