Rating a game within the app using game center

I'm currently developing an iOS game with SpriteKit using Swift, and I'm looking at different capabilities I could implement in my app. As I've seen in many games, you can rate a game without leaving the app within game center. Here's an example:

在这里输入图像描述

However, I've thoroughly searched how this works and how to implement it (as well as the Facebook Liking) without finding results. Even Apple's GameKit documentation doesn't seem to even mention this. Moreover, it seems really weird that I can rate and click done as many times as I want on the game center screen. So, is it possible to rate a game without leaving the app using game center?


Yes. You'll have to configure your app for game center and use GKGameCenterViewController() to get a view controller and present it to display that screen. You may also need to implement the GKGameCenterControllerDelegate protocol.

Read the Game Center Programming Guide for more info:

https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/GameKit_Guide/Introduction/Introduction.html

链接地址: http://www.djcxy.com/p/68238.html

上一篇: 在Glassfish 3.1.1上部署Liferay 6.0.6时出错

下一篇: 使用游戏中心在应用内对游戏进行评分