【问题标题】:How to display an image when the user clicks a detail button in a tableview. iOS当用户单击表格视图中的详细信息按钮时如何显示图像。 iOS
【发布时间】:2015-08-07 15:43:07
【问题描述】:

我知道以前可能有人问过这个问题,但我无法在网上找到它。我只是想知道当用户单击 tableview 上的详细信息按钮时如何显示 POP UP image OR TEXT 。

谢谢你们。

【问题讨论】:

标签: ios xcode uitableview cocoa-touch uikit


【解决方案1】:

你想实现delegate method- (void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath

当调用该方法时,呈现一个模态视图控制器或警报视图以获取弹出窗口。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-11
    相关资源
    最近更新 更多