我实现了一个 TableView 以在选择特定行时显示一个 PickerView。但这有时会阻止选定的单元格。所以,当pickerView 出现时,我希望我的scrollView 滚动到选定的单元格。
无论如何要获取所选行的当前位置吗?这样我就可以实现类似的东西
//---scroll to the current text field---
CGRect textFieldRect = [currentTextField frame];
[scrollView scrollRectToVisible:textFieldRect animated:YES];
谢谢。