// // CLPickerDrum.h // // Created by sho yakushiji on 2013/12/15. // Copyright (c) 2013年 CALACULU. All rights reserved. // #import @protocol CLPickerDrumDataSource; @protocol CLPickerDrumDelegate; @interface CLPickerDrum : UIView @property (nonatomic, weak) id dataSource; @property (nonatomic, weak) id delegate; @property (nonatomic, strong) UIColor *foregroundColor; - (void)reload; - (void)selectRow:(NSInteger)row animated:(BOOL)animated; - (NSInteger)selectedRow; @end @protocol CLPickerDrumDataSource @required - (NSInteger)numberOfRowsInPickerDrum:(CLPickerDrum *)pickerDrum; @end @protocol CLPickerDrumDelegate @optional - (CGFloat)rowHeightInPickerDrum:(CLPickerDrum *)pickerDrum; - (UIView*)pickerDrum:(CLPickerDrum *)pickerDrum viewForRow:(NSInteger)row reusingView:(UIView *)view; - (NSString *)pickerDrum:(CLPickerDrum *)pickerDrum titleForRow:(NSInteger)row; - (void)pickerDrum:(CLPickerDrum *)pickerDrum didSelectRow:(NSInteger)row; @end