CCDirectorDelegate Protocol Reference
| Conforms to | NSObject |
| Declared in | CCProtocols.h |
Tasks
-
– updateProjectionCalled by CCDirector when the projection is updated, and “custom” projection is used
-
– shouldAutorotateToInterfaceOrientation:Returns a Boolean value indicating whether the CCDirector supports the specified orientation. Default value is YES (supports all possible orientations)
-
– directorDidReshapeProjection:Called when projection is resized (due to layoutSubviews on the view). This is important to respond to in order to setup your scene with the proper dimensions (which only exist after the first call to layoutSubviews) so that you can set your scene as early as possible to avoid startup flicker
Instance Methods
directorDidReshapeProjection:
Called when projection is resized (due to layoutSubviews on the view). This is important to respond to in order to setup your scene with the proper dimensions (which only exist after the first call to layoutSubviews) so that you can set your scene as early as possible to avoid startup flicker
- (void)directorDidReshapeProjection:(CCDirector *)directorDeclared In
CCProtocols.hshouldAutorotateToInterfaceOrientation:
Returns a Boolean value indicating whether the CCDirector supports the specified orientation. Default value is YES (supports all possible orientations)
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientationDeclared In
CCProtocols.h