Alex Rivera | Logout

How do you use Custom Objects in Xcode 4?

Asked 2011-05-18T10:57:22.100
15

I have the same question as on this page:

In Interface Builder 3, we can drag custom object( ex. subview obj UIView ) to the stage. But in XCode 4, after we create a xib, I have trouble to reuse it except by code.
And In the "Object Library" -> "Custom Objects",it's empty.

Custom Objects in Xcode 4

But the answer given there doesn't work for me. I drag the xib file to Custom Objects list but it doesn't add anything to the list.

Edit
Report

1 Answer

-7

You can specify the custom class in the Interface builder In the class drop down you can choose the custom class for the ui element in Interface builder. The class has to be added to the project inorder for it to appear in the drop down.

enter image description here

answered 2011-05-18T11:01:59.587

Your Answer