If you create a really great view controller and then realize it would be useful in another project you have to rename the class and all the files.
To rename a class begin by switching to the symbol navigator view. You can do this by clicking the icon shown in Figure 1 or choosing View > Navigators > Symbol.
Select the class you want to rename.
Choose Edit > Refactor > Rename….
Enter the new name of the class (see figure below).
Click Preview.
Choose Edit > Refactor > Rename….
Enter the new name of the class (see figure below).
Click Preview.
The preview action sheet, shown in Figure 3, allows you to view side by side all the proposed changes to your files.
Click Save and you are done!
No comments:
Post a Comment