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.
我想将文件重命名为 .h、.m。.xib 改成我自己的名字。
我创建了一个选项卡式应用程序,我单击了源浏览器,并更改了
FirstViewController.h to FVC.h FirstViewController.m to FVC.m
并更改了各自的位置以包含 FVC.h。
这个对我有用。但我想知道的是,这是我可以继续使用的正确方法吗?..这种方法会有任何隐藏的问题吗?
唯一的“陷阱”是,如果您在代码中使用 nibName(即 initWithNibName:),您显然也需要更改它。我个人对这个问题有所了解 - 应用程序启动然后在它尝试推动那个损坏的对象时崩溃。