// // PGPickerColumnView.h // PGPickerView // // Created by piggybear on 2017/7/26. // Copyright © 2017年 piggybear. All rights reserved. // #import @protocol PGPickerColumnViewDelegate; @interface PGPickerColumnView : UIView @property (nonatomic, weak) id delegate; @property (nonatomic, strong) NSArray *datas; @property (nonatomic, assign) NSUInteger component; @property (nonatomic, assign) NSUInteger selectedRow; @property (nonatomic, strong) NSArray *viewBackgroundColors; @property (nonatomic, assign) BOOL refresh; @property (nonatomic, copy) NSString *textOfSelectedRow; @property (nonatomic, strong)UIColor *textColorOfSelectedRow; @property(nonatomic, strong) UIFont *textFontOfSelectedRow; @property (nonatomic, strong)UIColor *textColorOfOtherRow; @property(nonatomic, strong) UIFont *textFontOfOtherRow; @property(nonatomic, assign) BOOL isHiddenWheels; - (instancetype)initWithFrame:(CGRect)frame rowHeight:(CGFloat)rowHeight upLineHeight:(CGFloat)upLineHeight downLineHeight:(CGFloat)downLineHeight; - (void)selectRow:(NSInteger)row animated:(BOOL)animated; @end @protocol PGPickerColumnViewDelegate @optional - (void)pickerColumnView:(PGPickerColumnView *)pickerColumnView didSelectRow:(NSInteger)row; - (void)pickerColumnView:(PGPickerColumnView *)pickerColumnView title:(NSString *)title didSelectRow:(NSInteger)row; - (UIFont *)pickerColumnView:(PGPickerColumnView *)pickerColumnView textFontOfOtherRow:(NSInteger)row InComponent:(NSInteger)component; - (UIColor *)pickerColumnView:(PGPickerColumnView *)pickerColumnView textColorOfOtherRow:(NSInteger)row InComponent:(NSInteger)component; @end