iphone - How to create the UIView sub class with xib? -


i want create uiview commonly. , use view in view controllers. how can create uiview sub class xib , use in view controllers? in advance.

  1. you need create subclass: file -> new -> file -> cocoa touch -> objective c-class -> subclass of target class type (uiview on case)
  2. then, create xib it: file > new > user interface > view (name xib)
  3. now go , design xib on interface builder.
  4. last thing should change view's class type in identity inspector. custom xib linked custom class.

let me know if need further detail.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

Macromedia Director: Decompile EXECUTABLE File -