2013-02-26 3 views
15

에서 "평가 및 검토"를 여는 방법 나는 그런 약 SKStoreProductViewController, 몇 가지 튜토리얼을 참조하십시오 Open a list of my apps in the App Store within my Appskstoreproductviewcontroller : 출시

그러나, 항상 "세부 사항"에 SKStoreProductViewController을 열어 발사는 어떻게 열 수를 "등급 및 검토 "프로그램

+0

해결책을 찾았습니까? –

+2

이것은 iOS6에서는 불가능합니다. 그러나 URL을 호출하는 iOS5 솔루션은 등급 페이지에서 App Store를 시작하는 것으로 보입니다. http://stackoverflow.com/questions/3654144/direct-rate-in-itunes-link-in-my-app/4382571#4382571 – lschult2

+0

IOS 8.4는 어떻습니까? 행운? –

답변

0

아래 코드는 네이티브 앱 스토어 응용 프로그램

struct AppStoreURLs { 
    static let templateReviewURLiOS8 = "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=%@&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software" 
} 


func showAppReivewScreen(_ appId: String?) { 

     guard let applicaitonIdentifier = appId, (applicaitonIdentifier.isEmpty == false) else { return } 

       let reivewURL = String(format: AppStoreURLs.templateReviewURLiOS8, applicaitonIdentifier) 

     if let url = URL(string: reivewURL), UIApplication.shared.canOpenURL(url) { 

      if #available(iOS 10.0, *) { 
       UIApplication.shared.open(url, options: [UIApplicationOpenURLOptionUniversalLinksOnly : false], completionHandler: nil) 
      } else { 
       UIApplication.shared.openURL(url) 
      } 
     } 

    } 

호출이 방지 동작에 대한 리뷰를 & 등급 섹션을 엽니 다 on 응용 프로그램 식별자 사용

self.showAppReivewScreen("951627022")