Objective-c Study Notes (3) xcode Operation Skills

Source: Internet
Author: User

1. When using xcode to create an objective-C source file, you can check the function of generating a. h file at the same time. xcode is automatically selected here.

 

2. The code is automatically completed, and the xcode code is automatically completed.

2.1. Brackets match. Generally, when you place the first '[', the ']' is automatically generated.

2.2. What's more convenient is that all the variables are automatically added when the method is called. You only need to write the first parameter and press the tab key, the xcdoe will automatically jump to the place where the next parameter is entered and complete the parameter identification for you.

2.3. The ESC key can jump out of the prompt. When you want to use a class method but cannot start, Press ESC after entering [class, xcode will prompt you for all the available methods of this class, similar to other cases.

 

3. Batch edit,

Note:
Before you begin, you can use file-> make snapshot to save the current state of the project. If an error occurs, you can use file-> snapshots to restore it.

3.1. I believe that the find & replace in project will be used by everyone, but it is a profiteering match, and it is easy to cause problems.

3.2 select a symbol and edit-> edit all in scope to change it. However, my computer is black and I don't know why.

3.3 refactor, select a symbol, and then edit-> refactor. It will analyze all the changes and prompt them. I tried it and it is quite helpful, can replace the class name and file name.

 

4. debugging

Basically similar to VC, you can set a breakpoint at the front of the Code. The same is true for a single step.

Output Area: click a GDB button on the code to display a prompt box in black.

Stack display: click a button on the left of the gdb button to view the stack.

 

5. Some shortcut keys

Command + [move the code block to the left

Command +] Right Shift of code block

ESC display code prompt menu

Tab accept code prompt

 

 

 

Related Article

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.