简体   繁体   English

在xcode中更改Existing类名

[英]Change the Existing class name in xcode

I have xcode 4.5 and I want to add two project's file in my project. 我有xcode 4.5,我想在我的项目中添加两个项目的文件。
But the problem is - In that two class both class's name are same. 但问题是 - 在这两个班级中,两个班级的名字是相同的。
I changed the Class prefix from file inspector but it is changing the newly added file's name. 我从文件检查器更改了类前缀,但它正在更改新添加的文件名。
not my existing class name. 不是我现有的班级名称。

How to change all the existing class name or single class name ? 如何更改所有现有的类名或单个类名?

  1. Select your class name in .h/.m file 在.h / .m文件中选择您的类名
  2. Goto Edit->Refactor->Rename 转到编辑 - >重构 - >重命名
  3. Enter the new name for the class 输入班级的新名称

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

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