Change the Existing class name in xcode

Sam picture Sam · Mar 12, 2013 · Viewed 7.9k times · Source

I have xcode 4.5 and I want to add two project's file in my project.
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 ?

Answer

Anil Varghese picture Anil Varghese · Mar 12, 2013
  1. Select your class name in .h/.m file
  2. Goto Edit->Refactor->Rename
  3. Enter the new name for the class