如何在iPhone的xcode 4中制作customUI对象
问题描述:
我想知道如何在iPhone中制作自定义UI对象?
I want to know how to make custom UI objects in iPhone ?
答
您不能为自定义对象执行自定义对象iPhone开发还没有。这适用于Mac开发。
You can't do custom objects for iPhone development yet. That's for Mac development.
最接近的是基于UIView编写自己的自定义组件,然后在IB中放置UIView并将类型更改为您的自定义零件。然后它将允许您进行所需的任何布线,并在运行时将嵌入您自己的类的实例。你不能在IB中看到组件,只有空的UIView ....
The closest you can get is to program your own custom component based on a UIView, then place a UIView in IB and change the type to your custom component. It will then let you do any wiring needed and at runtime will embed an instance of your own class. You cannot see the component in IB though, only an empty UIView....