Skip to content
rcloud edited this page Jun 10, 2012 · 1 revision

#UIView

  • the UIView class defines a rectangular area on the screen and the interfaces for managing the content in that area.
  • at runtime a view object handles the rendering of any content in its area and also handles any interactions with that content.
  • UIView itself has the capability of filling itself with a background color. More sophisticated content can be presented by subclassing UIView and implementing the necessary drawing and event handling code yourself.

##common methods and properties

  • frame - the frame rectangle which describes the view's location and size in its superview's coordinate system. takes a CGRect as an operator. You can use this rectangle during layout operations to size and position the view.
  • bounds - this property describes the view's location and size in its own coordinate system.
Clone this wiki locally