A class that controls a view inside a window.

Constructor

CCViewController()

Properties

  • CCView view: The inner view of the view controller
  • CCWindow pwindow: The window that this view controller is inside
  • CCApplication application: The application this view controller is registered to

Methods

  • nil loadView(CCWindow win, CCApplication app): Loads the view into the view controller.
    • win: The new parentWindow
    • app: The new currentApplication
  • superLoadView = loadView
  • nil viewDidLoad(): Called when the view is done loading. Put your code to add subviews here.
  • nil dismiss(): Deregisters the view and its subviews to prepare for teardown.