iphone 弹出表单UIActionSheet的应用。
2011-08-31 13:48
381 查看
UIActionSheet用于让用户在多个选项之间进行选择。操作表从底部弹出。
。
继承UIActionSheetDelegate
。按下按钮弹出表单
#pragma mark -
#pragma mark Btn press
-(void)photoBtnPress{
UIActionSheet *actionSheet = [[UIActionSheet
alloc]
initWithTitle:@"表单标题"
delegate:self
cancelButtonTitle:@"取消"
destructiveButtonTitle:@"元素1"
otherButtonTitles:@"元素2",@"元素3",
nil];
[actionSheet
showInView:self.view];
[actionSheet
release];
}
。表单回调
#pragma mark -
#pragma mark UIActionSheetDelegate
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
NSLog(@"buttonIndex: %d",
buttonIndex);
}
。
继承UIActionSheetDelegate
。按下按钮弹出表单
#pragma mark -
#pragma mark Btn press
-(void)photoBtnPress{
UIActionSheet *actionSheet = [[UIActionSheet
alloc]
initWithTitle:@"表单标题"
delegate:self
cancelButtonTitle:@"取消"
destructiveButtonTitle:@"元素1"
otherButtonTitles:@"元素2",@"元素3",
nil];
[actionSheet
showInView:self.view];
[actionSheet
release];
}
。表单回调
#pragma mark -
#pragma mark UIActionSheetDelegate
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
{
NSLog(@"buttonIndex: %d",
buttonIndex);
}
相关文章推荐
- IPHONE应用开发 - 开发常用控件:UIActionSheet和UIAlertView学习
- 【iPhone代码片段之一】UIActionSheet&UIAlertView的应用
- iPhone 应用实现弹出框视图的方法
- UIActionSheet操作表单-IOS开发
- UIActionSheet操作表单-IOS开发
- Iphone之UIAlertView和UIActionSheet
- IOS UIActionSheet(底部 弹出框的使用)
- iphone通过UIActionSheetDelegate实现警告
- UIActionSheet操作表单
- iOS7 UIActionSheet 写 弹出界面冲突 问题的解决
- iPhone起步-2:iPhone常用控件、UIActionSheet、UIAlertView
- php的表单提交(post接收数据)和js弹出框的应用
- iOS7 弹出UIActionSheet,UIImagePickerViewController的navigationbar代理,搜索未用到的图片
- 在 iPhone 应用里自定义一个弹出窗口
- iPhone开发--UIActionSheet的按钮不灵敏
- jquery插件dialog的应用-弹出from表单
- 使用UIActionSheet 弹出UIDatePicker
- iPhone常用控件、UIActionSheet、UIAlertView
- iOS8中UIActionSheet弹出UIImagePickerController异常处理
- iPhone控件之UIActionSheet