自定义inputView的时候使用UIPickerView,自定义高度的时候会出现inputAccessoryView与inputView坐标错乱

如图:

UITextField自定义inputView注意事项

 

解决方式:

 UIView *inputView = [[UIView alloc]initWithFrame:self.pickerView.bounds];

  [inputView addSubview:self.pickerView];

 self.inputView = inputView;

相关文章: