Tuesday 2 April 2013

How to Rename AppDelegate File ?


Do you need to change the filename of your appDelegate file? You obviously can’t just rename the file, because the project looks for it as an entry point to your code. XCode actually makes this really easy to do, although it’s not immediately obvious how to do it. Just go into your appDelegate’s .h file, right-click on the Class name (right next to @interface), and choose “Refactor”. From there, the process is pretty simple. Just make sure Rename is selected in the drop-down list on the left, and enter the new class name in the text box on the right. Click Preview, and you’ll get a report of what will be changed. Click Apply to apply the change. That’s it. Simple as that.

No comments:

Post a Comment