-
Notifications
You must be signed in to change notification settings - Fork 0
Achievements
yokoe edited this page Jul 26, 2011
·
5 revisions
Achievements are usually managed at the server side, but you can also unlock achievements offline.
Sign in to http://pankia.com, go to "Basic Information", download a file named PNOfflineSettings.plist
by clicking "export to plist", and include the plist in "Resources" directory in your project.
To unlock an achievement, call +[Pankia unlockAchievement:]
.
-(void)unlockSomeAchievement:(id)sender
{
[Pankia unlockAchievement:@"10"]; // Unlock the achievement with ID of "10"
}
When an achievement is unlocked, a notification bar will show up at the top of the screen.
If you want to stop showing the notification bar, define -(BOOL)shouldShowNotification
in your delegate.
- (BOOL)shouldShowNotification
{
return NO; // don't show the notification bar
}