【问题标题】:how to make UIImageView clickable (touchable) with an iTunes link or a Google search如何使用 iTunes 链接或 Google 搜索使 UIImageView 可点击(可触摸)
【发布时间】:2011-12-14 22:04:55
【问题描述】:

我在 UIImageView 中有一些静态家庭广告,现在只显示一些文本。我想让它们可点击,所以当用户触摸 UIImageView 时,它会打开一个带有预定义 Google 搜索的 iTunes 链接或 Safari。

这里最好的方法是什么?

谢谢!

【问题讨论】:

    标签: ios url uiimageview touch itunes


    【解决方案1】:

    有什么理由不能使用 UIButton?

    您可以设置 UIButton 的图像,然后通过 IB 或在代码中使其可触摸。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-12-09
    • 1970-01-01
    • 2011-12-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-10
    相关资源
    最近更新 更多