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