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);
}
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);
}
相关文章推荐
- IOS中UIActionSheet使用方法详解
- 【IOS 开发学习总结-OC-47】★ios开发之UI控件——UIAlertView与 UIActionSheet
- IOS基础UI之(五)UIAlertView、UIActionSheet和UIAlertController详解
- ios之UIActionSheet
- iOS 自定义UIActionSheet
- UIActionSheet操作表单-IOS开发
- iOS.UIKit.07.UIAlertView_UIActionSheet
- IOS中UIActionSheet使用详解
- iOS UI基础-6.0 UIActionSheet的使用
- 【学习ios之路:UI系列】UIAlertView. UIActionSheet 和 UIAlertController
- iOS中的表单按钮选项UIActionSheet常用方法整理
- iOS UIActionSheet
- iOS开发笔记-UIActionSheet的相关属性设置
- UIAlertController的使用(ios9.0后代替UIAlertView与UIActionSheet)
- iOS中UIActionSheet动态添加按钮
- IOS UIActionSheet
- iOS学习之UIActionSheet的使用
- IOS开发之自定义UIActionSheet
- IOS笔记 - UIActionSheet
- IOS提示控件UIActionSheet,UIAlertView