iphone 弹出表单UIActionSheet的应用。
来源:互联网 发布:淘宝哪家红翼真的 编辑:程序博客网 时间:2024/05/21 06:36
UIActionSheet用于让用户在多个选项之间进行选择。操作表从底部弹出。
。
继承UIActionSheetDelegate
。按下按钮弹出表单
#pragma mark -
#pragma mark Btn press
-(void)photoBtnPress{
UIActionSheet *actionSheet = [[UIActionSheetalloc]
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的应用。
- 【iPhone代码片段之一】UIActionSheet&UIAlertView的应用
- iPhone开发之UIActionSheet的使用
- iPhone开发--UIActionSheet的按钮不灵敏
- iPhone开发--UIActionSheet的按钮不灵敏
- iPhone开发--UIActionSheet的按钮不灵敏
- IPHONE应用开发 - 开发常用控件:UIActionSheet和UIAlertView学习
- IPHONE应用开发 - 开发常用控件:UIActionSheet和UIAlertView学习
- 使用UIActionSheet 弹出UIDatePicker
- UIActionSheet 弹出时箭头
- UIActionSheet 弹出UIDatePicker
- jquery插件dialog的应用-弹出from表单
- [转Iphone]UIActionSheet
- iPhone开发之UIActionSheet
- iPhone – UIActionSheet Example
- iPhone开发之UIActionSheet
- UIActionSheet操作表单
- UIActionSheet/表单视图
- 关于 compareTo() , equals,和==使用上的区别
- MySQL安装图解[组图]
- Python中的yield
- 关于社交网络项目问题
- JConsole使用
- iphone 弹出表单UIActionSheet的应用。
- LabWindows界面的程序控制
- Cheung1021
- ISTQB software testing certification sample question paper with answers
- Linux下Mongodb安装和启动配置.txt
- Response.Write("<script>alert('验证码不正确');</script>"); 丢失样式表解决方案
- Struts2+Mybatis+Spring整合增删改查实例
- Linux下Mongodb的主从配置
- JS中document对象详解