Understanding about xcode refactoring options

Source: Internet
Author: User

Understanding about xcode refactoring options


Rename: Rename the identifier to ensure better code readability. The identifier includes the name of a class, method, or function.

Extract: Extract the code you selected in XCode to a new method or function.

Create SuperClass: defines the parent class for the currently selected class in Xcode

Move Up: Move the selected method, attribute, or instance variable from a class to its parent class. Both the subclass and parent classes are defined in the project.

Move Down: opposite to Move up, it moves the selected Identifier from the parent class to the subclass. Both the parent class and the subclass are defined in the project.

Encapsulate: Encapsulate an instance variable and create an appropriate Accessor for it

Convert to Objective-c arc (converted to oc arc): a tool used to Convert old projects so that they can apply automatic reference counting.

Convert to Modern Objective-C Syntax (converted to the new OC Syntax): a tool to replace code with the new OC feature.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.