当用户按下 tableView 上的任何单元格时,如何显示 popoverView?

发布于 2024-10-18 21:42:20 字数 274 浏览 6 评论 0原文

我想当用户按下 ipad 上 tableView 中的每个单元格时,它将显示一个带有详细数据的 popoverView ..

但在这个委托中:- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {}

I无法使用发件人让 popoverView 显示... 或者我如何使用发件人来显示 popoverView 显示?

预先感谢...

迷你

I wanna when user press each cell in tableView on ipad , and then it will show a popoverView with detail Data..

But in this delegate:- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {}

I can't use a sender to let popoverView show up...
Or how could I use a sender to show popoverView show up??

Thanks in advance...

Mini

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

╰◇生如夏花灿烂 2024-10-25 21:42:20

您可以通过向 tableView 发送以下消息来检索单元格

- (UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath

,或者如果您只想获取 CGRect,则使用以下方法

- (CGRect)rectForRowAtIndexPath:(NSIndexPath *)indexPath

You can retrieve the cell by sending the following message to your tableView

- (UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath

Or if you just want to get a CGRect then use the following method

- (CGRect)rectForRowAtIndexPath:(NSIndexPath *)indexPath
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文