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.
- you need create subclass:
file -> new -> file -> cocoa touch -> objective c-class -> subclass of target class type(uiview on case) - then, create
xibit:file > new > user interface > view(name xib) - now go , design
xiboninterface builder. - last thing should change view's class type in
identity inspector. custom xib linked custom class.
let me know if need further detail.
Comments
Post a Comment