Why can’t I get the correct frame for a tableViewCell textField?
myCustomCell has a leftDetailTF and a rightDetailTF textfield.
The log statement below generates the same rect coordinates no matter what cell/textfield I tap. LOG: Frame = {{470, 1}, {200, 24}}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
myCustomCell *cell = (myCustomCell*)[tableView cellForRowAtIndexPath:indexPath];
NSLog(@"Frame = %@",NSStringFromCGRect(cell.rightDetailTF.frame));
If you want to check the frame of the subviews with in the superview’s superview you can use this.