gpt4 book ai didi

url - 从 xcode 中链接到应用程序

转载 作者:行者123 更新时间:2023-12-05 00:35:47 25 4
gpt4 key购买 nike

需要按钮链接到应用商店中的其他应用。我用这个...

[[UIApplication sharedApplication] 
openURL:[NSURL URLWithString:@“http://www.google.com"]];

它在 safari 中运行良好。如果你想直接链接到你使用的 iTunes 商店,我读到了什么: itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=409954448
每当我这样做时,它都会说无效的网址。也许是因为模拟器中没有应用商店?它只能在设备上工作?有没有办法在模拟器中测试这些链接?

我正在使用 http://itunes.apple.com/linkmaker/获取应用程序的链接。感谢您的输入。

最佳答案

您已经在这里回答了您自己的问题:

Whenever I do that it says invalid url. Maybe its because the app store isn’t available in the simulator? and it will only work on a device?



iOS 模拟器没有 AppStore/iTunes,因此无法打开 AppStore/iTunes 链接。但是你这样做的方式是正确的,应该可以正常工作。

关于url - 从 xcode 中链接到应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8992996/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com