0

I'm using a book on programming games in xcode to teach myself. I downloaded some of the programs and tried to make my own codes using them, but i can't figure out how to create a mainview.h or mainview.m Also how do these differ from view controller?

1 Answers1

0

commandn -> Objective-C class -> Next

Class: mainview

Subclass of: UIView

-> Next -> Create

  • A view is an area where stuff can be draw (programatically using a view controller or visually in Interface Builder).
  • A view controller is a class that that controls how stuff is drawn in a view, it contains all the code and logic).
paulvs
  • 11,963
  • 3
  • 41
  • 66