issues
search
7General
/
HZSheetView
模仿系统的ActionSheet中加载一自定义的datetimepickerview
MIT License
1
stars
0
forks
source link
你应该给self.selectIndex赋值 self.selectIndex=row关键代码
#2
Open
PengJiang520
opened
7 years ago
PengJiang520
commented
7 years ago
(UIView
)pickerView:(UIPickerView
)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(nullable UIView
)view { UIView
resView = [[UIView alloc] init]; if (self.dataSource && [self.dataSource respondsToSelector:@selector(CpickerView:viewForRow:forComponent:reusingView:)]) { self.selectIndex=row; resView = [self.dataSource CpickerView:pickerView viewForRow:row forComponent:component reusingView:view]; } return resView; }
7General
commented
7 years ago
你在这个方法里设置row 获取的数据不对!! 我已经更新了bug,还增加了一些方法。谢谢提出问题。一块进步