I can find a message that will teach you how to use the delegate method to check the correctness of the line and then scroll it to the right, if not.
But that I do not want. Is it possible to disable a specific row after pickerView initialization? Like the "gray" line and can not stop the indicator on it.
Thanks, experts.
There are two parts to this.
-[<UIPickerViewDelegate> pickerView:viewForRow:forComponent:reusingView:]
UILabel
-[<UIPickerViewDelegate> pickerView:didSelectRow:inComponent:]
-[UIPickerView selectRow:inComponent:animated:]
You can also just leave a gap in the implementation, for example:
- (void)pickerView:(UIPickerView *)thePickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component { if(row==0){ //Code } if(row==1){ //BLANK } if(row==2){ //Code }
Source: https://habr.com/ru/post/898178/More articles:Column go to tab DataGrid - wpfDjango: How can I use gzip staticfiles in dev mode? - djangoHow to delete, delete, delete or delete an image from an html canvas? - html5Random time delay - c ++Can you save nested objects in redis? - node.jsXDT Config Transforms - ReplaceAll? - web-configMySQL for Qt on Mac - mysqlHow to use ctags to autocomplete in vim - javaI get an implicit declaration of the strncmp function - cRuby Parallel / Multithreaded programming for reading a huge database - multithreadingAll Articles