开发者

UITableView cell coordinates

There is any way to get cell coordinates when pressing on cell?

I have UITableView and i want to show the activityIndicatorView on the cell t开发者_如何学Chat was pressed and for that i need the cell coordinates.

the didSelectRowAtIndexPath method dont provide this information.

one more thing , when i show the activityIndicatorView i want from the UITableView to be darker (like in UIAlertView )and when i finished to do some stuff i want to bring the light back . how can i do it?


[tableView cellForRowAtIndexPath:indexPath] Should let you directly access the cell from the didSelectRowAtIndexPath.

UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
[cell addSubview:myIndicator];
[myIndicator startAnimating];

Also, in this method, do all your manipulations to the rest of the table.

You don't need to bother with coordinates.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜