简体   繁体   English

如何在 xcode 4.2 中的一个视图 controller 中从 Interface Builder 在 iphone 中添加和编辑 2 个视图?

[英]how to add and edit 2 views in one view controller in xcode 4.2 from Interface Builder in iphone?

I am Abbas,I am new to iPhone Development,我是 Abbas,我是 iPhone 开发的新手,

Till tomorrow i am using xcode 3.2 sdk and build in interface builder,直到明天我都在使用 xcode 3.2 sdk 并在界面生成器中构建,

I have updated my xcode to 4.2,我已经将我的 xcode 更新到 4.2,

If i am adding another view to existing view controller by assigning IBOutlet View *view1,如果我通过分配 IBOutlet View *view1 向现有视图 controller 添加另一个视图,

and edit my new view from Interface Builder, it does not able to edit.并从 Interface Builder 编辑我的新视图,它无法编辑。

and also my previous Interface builder is not showing.而且我以前的界面生成器也没有显示。

What i can do, Give me any suggestion,我能做什么,给我任何建议,

Please Help me.请帮我。

Thanks.谢谢。

From xcode4, interface builder is integrated into xcode, it isn't a single UI any more.从 xcode4 开始,interface builder 被集成到 xcode 中,它不再是一个单一的 UI。

You can easily edit it through just single click the.xib file.您只需单击 .xib 文件即可轻松编辑它。 Maybe there is some wrong operation.也许有一些错误的操作。 I recommend you to close xcode3.2 and the project, then reopen the project only in xcode 4.2.我建议您关闭 xcode3.2 和项目,然后仅在 xcode 4.2 中重新打开项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM