开发者

UITableView cell coordinates

开发者 https://www.devze.com 2023-01-12 00:43 出处:网络
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

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

精彩评论

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