如何使用“自定义对象"在 XCode 4 中的 IB [英] How to use "Custom Objects" in IB in XCode 4

查看:25
本文介绍了如何使用“自定义对象"在 XCode 4 中的 IB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是在 Xcode 4 中,它让我相信我可以创建和重用自定义对象.但是,我找不到任何这样做的方法.

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.

你如何使用它?有人知道吗?

推荐答案

简短回答:您目前无法使用自定义对象"部分来创建自定义对象.

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

自定义对象部分包含第三方界面生成器元素.旧版本的 Xcode 和 Interface Builder 支持创建自定义用户界面元素.BWToolkit 包含自定义元素的示例.如果您在 Xcode 4 中打开包含自定义元素的旧 Xcode 项目,这些元素将出现在自定义对象部分.Xcode 4 目前不允许您编辑包含自定义用户界面元素的 xib 文件,从而降低了自定义对象部分的实用性.

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.

如果您希望能够在 Xcode 4 中创建自定义用户界面元素,向 Apple 提交错误报告.

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

这篇关于如何使用“自定义对象"在 XCode 4 中的 IB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆