How to use “Custom Objects” in IB in XCode 4

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-11 12:19:07

问题


This is in Xcode 4 and it leads me to believe that I can create, and reuse, custom objects. However, I can not find any method of doing so.

How do you use this? Does anyone know?


回答1:


Short answer: you currently can't use the Custom Objects section to create custom objects.

The Custom Objects section contains third-party Interface Builder elements. Older versions of Xcode and Interface Builder supported the creation of custom user interface elements. BWToolkit contains examples of custom elements. If you open an old Xcode project in Xcode 4 that contains custom elements, those elements appear in the Custom Objects section. Xcode 4 does not currently allow you to edit xib files that contain custom user interface elements, reducing the usefulness of the Custom Objects section.

If you would like to be able to create custom user interface elements in Xcode 4, file a bug report with Apple.



来源:https://stackoverflow.com/questions/11054826/how-to-use-custom-objects-in-ib-in-xcode-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!