笔尖连接丢失:如何恢复?
我正在为 iPhone 编写我的第一个正版程序。在开发过程中,我决定重命名一个辅助视图控制器(不是RootViewController),因此我重命名了.h、.m和.xib文件。
我不得不修改少量代码,例如 import 语句,但编码工作很快恢复并全部编译并运行。
但是,当将视图控制器推入堆栈时,我的视图控制器视图不会出现:我只是得到一个空白视图。显然,重命名 nib 文件以与视图控制器一致是不够的。如何修复?
预先感谢您的任何见解。
约翰·R·多纳
I am writing my very first genuine program for the IPhone. In the course of developing it, I decided to rename a subsidiary view controller (not RootViewController), so I renamed the .h and .m and .xib files.
I had to modify a small amount of code, such as import statements, but the coding effort quickly recovered and all compiled and ran.
However, my view for the view controller doesn't appear when pushed on the stack: I just get a blank view. Apparently renaming the nib file to agree with the view controller is not enough. How to fix?
Thanks in advance for any insights.
John R. Doner
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否检查了 nib 文件中 File's Owner 对象的类?
Did you check the class of the File's Owner object in the nib file?