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];
精彩评论