Parmis Software
Parmis Software

Reputation: 1

How can I get Achievement title? (iPhone Game Center)

I am trying to show achievement title when the player earns that. I am doing it exactly like Apple's GKTapper sample:

NSLocalizedString(ach.identifier, NULL)

(ach is of type GKAchievement)

In GKTapper this line returns the title (e.g. "One tap!"). But in my own application, this returns the Achievement ID (e.g. com.companyname.gamename.achievementid)

My achievement reference name is "Jackpot!" and I only added one language (English). The title of the achievement in English is also "Jackpot!"

Thanks

Upvotes: 0

Views: 561

Answers (1)

Hamish
Hamish

Reputation: 31

GKTapper uses a Localizable.strings file. Look for it in the resources folder.

NSLocalizedString(@"com.appletest.one_tap", NULL) is paired with @"Just One Tap";

(in the version of GKTapper I'm looking at)

Upvotes: 3

Related Questions