UIExPickerView.h 722 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // UIExPickerView.h
  3. // test
  4. //
  5. // Created by zhangjingfei on 17/5/2019.
  6. // Copyright © 2019 zhangjingfei. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @protocol pickerDelegate <NSObject>
  11. - (void)selectIndex:(NSInteger)index;
  12. @end
  13. @interface UIExPickerView : UIView<UIPickerViewDelegate,UIPickerViewDataSource>
  14. @property (nonatomic, strong) NSMutableArray *arr;
  15. @property (nonatomic, assign) NSInteger indexSelect;
  16. @property (nonatomic, weak) id <pickerDelegate> delegate;
  17. /* 初始化方法
  18. frame :选择框的frame
  19. arrData : 要展示的数据
  20. */
  21. - (instancetype)initWithFrame:(CGRect)frame arr:(NSArray *)arrData;
  22. @end
  23. NS_ASSUME_NONNULL_END