I’m looking for a way to determine the Frame of a selected tableView cell. For some reason, I can’t find an easy way to do this. I want to place a label close to the cell when it is selected. Any advice?
could you tell me a bit more about what you mean?
If all you are trying to do is grab the cells frame when you select it, you can always just ask the UITableViewCell for its frame using [myTableCell fame]. Since this inherits from UIView it has a frame just like anything else.
if you want to do this when the cell is selected, drop this into your didSelectRowAtIndexPath method.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
UITableViewCell *testCell = [tableView cellForRowAtIndexPath:indexPath];
NSLog(@“cell frame %@”, NSStringFromCGRect([testCell frame]));
is this what you are asking? let me know if i am not understanding your question correctly.