Class

GKNotificationBanner

The GKNotificationBanner class allows your game to display a notification banner that displays text to the player. The behavior of this banner is identical to other banners used by Game Kit.

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