Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
它消失了吗?在 XCode 3 中它确实存在。如何在 XCode 4 中创建子视图类?
你想创建一个模板或类...?
通过 File -> New -> Objective-c Class -> UIView Subclass ..->save 可以轻松创建子视图类
只添加一个普通的 UIView 有什么问题?
确保您选择 xib 文件作为 iOS 用户界面空文件,而不是 Mac OS X 文件。在后者中,只有 NSView 可用,UIView 不可用。