Reputation: 35384
Is it possible to have a separate game center leaderboard for iPad and iPhone in a universal application?
The game center app on iPhone should exclusively show the scores achieved on the iPhone. When viewed on iPad it should only show the iPad scores.
Upvotes: 3
Views: 954
Reputation: 5205
Yes, you can. Create 2 separate leaderboards in iTunes Connect, then when you post your score, check if the device is an iPhone or iPad
if(UI_USER_INTERFACE_IDIOM == UIUserInterfaceIdiomPad) {
//iPad
} else {
//it's an iPhone
}
and assign the appropriate identifier.
That code should compile (but I might've made a typo somewhere)
Upvotes: 2