问题描述
我已经更改了 xib 名称,但所做的更改并未反映在 xib 的 xml 文件中.我只是通过在项目导航器中重命名文件来更改名称.我错过了什么吗?
I have changed the xib name but the change done is not reflected in the xml file of the xib. I just changed the name by renaming the file in project navigator. am i missing something?
该项目处于版本控制之下.我尝试过重构.
The project is under version control. and I have tried refactoring.
编辑 2:问题是我没有更改从 xib 引用的所有者名称,这是 xib 的 xml 中的问题
Edit 2:The issue was i was not changing the owner name referenced from xib and that was the problem in the xml of xib
推荐答案
您是否尝试打开相应的 .m 或 .h 文件,选择类名,右键单击并选择 Refactor -> Rename... ?
Did you try opening the corresponding .m or .h file, selecting the class name, right clicking and choosing Refactor -> Rename... ?
这应该会更新 .m、.h 和 .xib 文件,以及项目文件.
That should update the .m, .h and .xib files, as well as the project file.
这篇关于更改xib名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!