<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      IOS的UIPickerView 和UIDatePicker

      1.UIPickerView的常見屬性

      1 //數(shù)據(jù)源(用來告訴UIPickerView有多少列多少行)
      2 @property(nonatomic,assign) id<UIPikerViewDataSource> dataSource;
      3 //代理(用來告訴UIPickerView每一列的每一行顯示什么內(nèi)容,監(jiān)聽UIPickerView的選擇)
      4 @property(nonatomic,assign) id<UIPickerViewDelegate> delegate;
      5 //是否要顯示選中的指示器
      6 @property(nonatomic) BOOL  showsSelectionIndicator;
      7 //一共有多少列
      8 @property(nonatomic,readonly) NSInteger numberOfComponents;

      2.UIPickerView的常見方法

      1 //重新刷新所有列
      2 -(void)reloadAllComponents;
      3 //重新刷新第component列
      4 -(void)reloadComponent:(NSInteger)component;
      5 //主動(dòng)選中第component列的第row行
      6 -(void)selectRow:(NSInteger)row inComponent:(NSInteger)component animated:(BOOL) animated;
      7 //獲取第component列的當(dāng)前選中的行號(hào)
      8 -(NSInteger)selectedRowIncomponent:(NSInteger) component;

      3.數(shù)據(jù)源方法(UIPickerViewDataSource)

      //  一共有多少列
      - (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)pickerView;
      //  第component列一共有多少行
      - (NSInteger)pickerView:(UIPickerView *)pickerView numberOfRowsInComponent:(NSInteger)component;

      4.代理方法(UIPickerViewDelegate)

       1 //  第component列的寬度是多少
       2 - (CGFloat)pickerView:(UIPickerView *)pickerView widthForComponent:(NSInteger)component;
       3 //  第component列的行高是多少
       4 - (CGFloat)pickerView:(UIPickerView *)pickerView rowHeightForComponent:(NSInteger)component;
       5 
       6 //  第component列第row行顯示什么文字
       7 - (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component;
       8 
       9 //  第component列第row行顯示怎樣的view(內(nèi)容)
      10 - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view;
      11 
      12 //  選中了pickerView的第component列第row行
      13 - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component;

      UIDatePicker

      1.常見屬性

      1 // datePicker的顯示模式
      2 @property (nonatomic) UIDatePickerMode datePickerMode;
      3 // 顯示的區(qū)域語言
      4 @property (nonatomic, retain) NSLocale   *locale;

      2.監(jiān)聽UIDatePicker的選擇

      因?yàn)閁IDatePicker繼承自UIControl,所以通過addTarget:..監(jiān)聽

       

      posted @ 2015-05-27 23:14  王世楨  閱讀(553)  評(píng)論(0)    收藏  舉報(bào)
      主站蜘蛛池模板: 国产又色又爽又黄的网站免费| 国产精品视频第一第二区| 国产精品高清中文字幕| 亚洲中文无码av永久不收费| 国产精品麻豆va在线播放| 亚洲日韩性欧美中文字幕| 中文字幕日韩有码一区| 国产亚洲另类无码专区| 亚洲综合小说另类图片五月天| 亚洲成人高清av在线| 91精品乱码一区二区三区| 精品少妇后入一区二区三区| 夜夜夜高潮夜夜爽夜夜爰爰 | 日韩人妻精品中文字幕专区| 99re视频在线| 国产午夜精品福利91| 无码人妻久久一区二区三区app| 亚洲精品无码AV人在线观看国产| 成人深夜节目在线观看| 97久久精品人人澡人人爽| 国产精品成人99一区无码| 免费av网站| 白玉县| 老司机性色福利精品视频| 国产色爱av资源综合区| 40岁大乳的熟妇在线观看| 人妻熟女一区无中文字幕| 欧美xxxxhd高清| 狠狠亚洲狠狠欧洲2019| 特级毛片在线大全免费播放| 成人国产乱对白在线观看| 激情视频乱一区二区三区| 麻豆人人妻人人妻人人片av | 精品国产AV无码一区二区三区| 激情综合网激情国产av| 国产中文字幕精品视频| 桦南县| 毛片网站在线观看| 九色国产精品一区二区久久| 18禁美女裸体爆乳无遮挡| 2021国产成人精品久久|