UITextField自定义inputView注意事项

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

如图:

解决方式:

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

  [inputView addSubview:self.pickerView];

 self.inputView = inputView;

猜你喜欢

转载自blog.csdn.net/HuberCui/article/details/81101922
今日推荐