Whether the object can become the first responder.
OptionalnextThe next responder in the responder chain.
OptionaltitleA string which describes the view this controller holds.
The root view of the view controller.
Returns the initial position of the window.
Whether the view has been loaded yet.
Returns the preferred size of the content, in characters.
Returns the preferred options for the window.
Notifies the object that it's about to become the first responder.
Whether to accept the first responder status
This is used to place a blinking cursor on screen while not drawing. It's only called on the first responder of a window.
The position and color of the cursor in window coordinates, or undefined to not place a cursor
Sends a list of key input events to the input manager, which will send
back text input events through insertText(text: string).
The input events to send
Loads the root view into memory.
Loads the view if it hasn't been loaded yet.
Handles when a method action fails to find a responder.
The method that was attempted
Presents a new view controller in place of this one.
The view controller to present
Notifies the object that it's about to no longer be the first responder.
Whether to resign first responder status
Attempts to call the specified method on the object, passing the call on to the next responder if this object doesn't implement it.
The name of the method to call
Any parameters to pass to the method
Whether a responder was able to respond to the method
Checks whether the passed object can become the first responder from the specified event.
The object to check
The event that was sent
Whether the object is allowed to be the first responder
Called when the view has just appeared on screen.
Whether the view is being animated.
Called when the view has just disappeared from the screen.
Whether the view is being animated.
Called after the view has been loaded into memory.
Called when the view is being added to the view hierarchy.
Whether the view is being animated.
Called when the view is about to appear on screen.
Whether the view is being animated.
Called when the view is about to disappear from the screen.
Whether the view is being animated.
The CCViewController class is the primary way to design behavior for a view or window. It owns a root view which is tied to the view controller, whose lifecycle is defined by the view controller.