다른 응용 프로그램을 다운로드 할 수있는 애플릿이 있습니다. ipa로 이동하는 plist를 통해 URL을 읽는 데 많은 시간이 걸립니다. 앱이 삭제되기 시작했습니다. 클릭하는 데 시간이 걸리지 않는 방법이 있습니까?url - ios에서 응용 프로그램을 엽니 다.
1
A
답변
0
if let url = NSURL(string:<#Your url string here#>) {
if #available(iOS 10.0, *) {
// for ios 10
UIApplication.shared.open(url as URL, options: [:], completionHandler: nil)
}
else {
// for ios 9 or older
UIApplication.shared.openURL(url as URL)
}
}
+0
이것은 내 코드이지만 작동하지 않습니다 – Dvor
-1
let appId = "xxx"
let storeUrl = String(format: "itms-apps://itunes.apple.com/app/id%@", arguments: [appId])
UIApplication.shared.openURL(URL(string: storeUrl)!)
+0
내 가게의 앱 – Dvor
... – Dvor
예제 코드에서 많은 시간 : NSURL * URL = [NSURL URLWithString : @ "아이튠즈 뮤직 스토어-서비스 : // 액션 = 다운로드 매니페스트 및 URL = https : //로 .. ... plist "]; [[UIApplication sharedApplication] openURL : url 옵션 : @ {} completionHandler : nil]; – Dvor