开发者

For UITableViewCell (on iPhone) I need to figure out how to get it's current position?

So, idea is the following. I have开发者_如何学Python UITableViewCell, and when I click on it, I want to show UIActivityIndicatorView right in this cell. I cannot figure out how do I find the X/Y or any position (I can find the frame size of UITableViewCell though but it does not help much :-) for the given cell. Any tips? Help?

Thank you!


If you have the cell, just add the activity indicator to the cell's contentView as a subview. There's no need to know the cell's position in terms of the table view's coordinate system to position the activity indicator within the cell. If you don't have a reference to the cell, call your table view's cellForRowAtIndexPath: method.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜