彈框控件 UIAlertView UIActionSheet

 

// 建立彈框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

相關文章
相關標籤/搜索