您的位置:首页 > 产品设计 > UI/UE

IOS UIActionSheet

2013-10-23 00:07 232 查看
UIActionSheet *sheet = [[UIActionSheet
alloc] initWithTitle:@"title"
delegate:self
cancelButtonTitle:@"cancel"
destructiveButtonTitle:@"destructive"
otherButtonTitles:@"other",
nil];

[sheet showInView:self.view];

#pragma mark - UIActionSheet Delegate
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{

NSLog(@"index %d",buttonIndex);
}

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: