iphone开发之Picker控件连接过程
2012-10-21 20:05
465 查看
1.将File's Owner上的doublePicker输出口连接到选取器。
2.将选取器视图上的DataSourceh和Delegate连接到File’s Owner(使用连接检查器)
3.将按钮的Touch Up Inside事件连接到File‘s Owner上的buttonPressed操作(使用连接检查器)
.h文件关键代码
2.将选取器视图上的DataSourceh和Delegate连接到File’s Owner(使用连接检查器)
3.将按钮的Touch Up Inside事件连接到File‘s Owner上的buttonPressed操作(使用连接检查器)
.h文件关键代码
#import <UIKit/UIKit.h> @interface BIDDoubleComponentPickerViewController : UIViewController <UIPickerViewDelegate,UIPickerViewDataSource> @property (strong,nonatomic) IBOutlet UIPickerView *doublePicker; @property (strong,nonatomic) NSArray *fillingTypes; @property (strong,nonatomic) NSArray *breadTypes; -(IBAction)buttonPressed; @end
相关文章推荐
- Iphone开发(七)date picker 和 picker view,较复杂的控件
- iPhone开发【六】常用控件之Picker View
- Iphone开发(七)date picker 和 picker view,较复杂的控件
- Objective-C ,ios,iphone开发基础:picker控件详解与使用,(实现省市的二级联动)
- Iphone开发(七)date picker 和 picker view,较复杂的控件
- Objective-C ,ios,iphone开发基础:picker控件详解与使用,(实现省市的二级联动)
- Objective-C ,ios,iphone开发基础:picker控件详解与使用,(实现省市的二级联动)
- iPhone开发【六】常用控件之Picker View
- Iphone开发(七)date picker 和 picker view,较复杂的控件
- iphone开发 UIAlertView+ UIPickerView
- iPhone开发【五】常用控件之Slider(不使用xib构建UI)
- iPhone 开发过程中的一些小技术的总结
- iPhone开发中经常用到的控件尺寸大集合
- iOS开发UI篇—UIPickerView控件简单介绍
- UIImagePickerController 图像选取器--在iPhone中调用照相机、照片库—IOS开发
- 【Android开发】控件篇(一):TimePicker & NumberPicker
- [iphone] iPhone 开发过程中的一些小技术的总结
- VC2005从开发MFC ActiveX ocx控件到发布到.net网站的全部过程
- 敏捷开发平台AgileEAS.NET中的本地数据库连接过程(以DrugShop为例)
- iPhone开发学习笔记001——Xib界面上的控件与代码的相互关联方法