Is It Possible To Add A “Rate This App” Link To My App?

后端 未结 6 461
面向向阳花
面向向阳花 2021-01-30 18:48

Here\'s what I\'m trying to do: I have a button on the settings page in my app - I want this to direct users to the review/rate page on the app store.

I know this is pos

6条回答
  •  青春惊慌失措
    2021-01-30 19:34

    Swift 2 version this code works for iOS 9:

    let appId = "12345678"
    let url = "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=\(appId)"
    
    UIApplication.sharedApplication().openURL(NSURL(string: url)!)
    

提交回复
热议问题