2
votes

I have created a custom UIView class named "abc" and a nib with it. Created a UIButton in IB in that nib. Now when I try to create outlet of that UIButton by extending arrow to File's Owner it wont allow me to do so. Please tell What i am doing wrong

3
change the class name in identity spector of your object.Juan Munhoes Junior

3 Answers

0
votes

Problem might be you are not setting Custom Class name for "abc" in xib file. Please not that whenever you create a subclass of UIView. You have to bind its view with that class. And when you are going to make IBOutlet connection instead of connecting it to File's Owner you have to connect it to you View placed in Objects(object list is on left side in interface builder).

4
votes

You need to change the view of your nib file to the customView class name, in the Identity Inspector, change the UIView Class in the picture to your custom class

identity inspector

-1
votes

*) Goto the views xib

*) Click on the File's Owner Identity inspector

*) and change the class name to the name of the View yu want.