Reputation: 31
In Xcode 4.6, I found activating Interface Builder disables the ability to choose some UI classes. For example:
I want use these UI classes in iOS applications. Is it not allowed to use them in xib file?
Upvotes: 1
Views: 234
Reputation: 6187
When you do not have an xib open, the Object Library allows you to view all objects in the Library. However, when an xib is selected it only allows you to select items that are available on the platform that the xib is designated for.
The Secure Text Field and Combo Box are Mac-only controls and simply do not exist on iOS.
For the Secure Text Field, you may use a UITextField
and check the Secure option in its Attributes inspector. That should cause the UITextField
to behave in a similar manner to the Mac's Secure Text Field.
For the Combo Box, this item has no iOS equivalent and would need to be implemented in a custom manner. However, Combo Boxes are not easily used on touch devices. I would suggest using a Label or Text Field combined with a Picker View to achieve the equivalent effect.
Upvotes: 2