Class

GKNotificationBanner

A notification banner that displays text to the player.

Overview

Listing 1 shows how to display a notification banner in your game. It constructs a title and message using private methods and then displays the banner. When the banner disappears from the screen, the completion block is called and the code advances to some other part of the game’s user interface.

Listing 1

Displaying a notification banner

- (void) showBanner
{
    NSString* title = [self generateTitle];
    NSString* message = [self generateBannerMessage];
    [GKNotificationBanner showBannerWithTitle: title message: message
        completionHandler:^{
        [self advanceToNextInterfaceScreen]
     }];
}

Relationships

Inherits From

Conforms To

See Also