Is there a way to get the frame of the currently selected UIPickerView's item?
I tried the following (as suggested below) but I always get a nil back:
-(void) pickerView:(UIPickerView *)pickerView 
      didSelectRow:(NSInteger)row 
       inComponent:(开发者_运维问答NSInteger)component{
    UIView *selected = [pickerView viewForRow:row forComponent:component];
}
UIView *view=[picker viewForRow:[picker selectedRowInComponent:1] forComponent:1];
CGRect viewframe=[view frame];
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论