iOS 11 Jump adaptation of App Store reviews

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_26918391/article/details/78222568

iOS 11 has been out for a while, there are also a lot of pit article for everyone encountered, I also came along for the ride.

Before iOS 11, in order to allow the user to jump directly to the App Store review page, your code probably written like this:

1
2
3
4
5
6
7
8
9
-( void )goToAppStore
 
{
 
 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:itunesurl]];
 
}

But today someone gave me had a bug, this has been said to be not working on iOS 11, and directly prompt "Unable to connect App Store"!



I tried it, is really the case, by the way looked APP other home, many manufacturers APP also fell into the pit not climb out, such as hungry, what, Baidu and other take-away. Through the help of search engines, I found the following method:

1
2
3
4
5
6
7
8
9
-( void )goToAppStore
 
{
 
 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:itunesurl]];
 
}

Note: XXX replace inside with your own APP ID.



Guess you like

Origin blog.csdn.net/qq_26918391/article/details/78222568