Inherits from CCAppDelegate
Conforms to NSApplicationDelegate
UIApplicationDelegate
Declared in AppDelegate.h

Overview

App Delegate for Cocos2D v3 and above.

This makes use of the simplified start-up configuration of Cocos2D v3, and is required when using Cocos2D 3.1 and above, because Cocos2D 3.1 initialization requires that the OpenGL view (and context) is available during CCDirector initialization.

Tasks

Other Methods

Other Methods

Properties

glView

The view in which the 3D scene is displayed.

@property (strong) IBOutlet CCGLView *glView

Declared In

AppDelegate.h

window

The window in which the app is displayed.

@property (nonatomic, strong) IBOutlet UIWindow *window

Declared In

AppDelegate.h

Instance Methods

toggleFullScreen:

Toggles the screen between standard and full-screen.

- (IBAction)toggleFullScreen:(id)sender

Declared In

AppDelegate.h