IOS programming-xcode User Guide 1-xcode menu introduction-xcode

Source: Internet
Author: User

Before introducing the menu, we need to introduce the key corresponding to a shortcut key symbol, because using the shortcut key will be faster.

1. shortcuts

(Command
Key)-on some apple keyboards, this key may also contain the apple logo ()
(Control key)
(Option key)-"ALT" may also appear on this key
(Shift key)
(Caps Lock key)-switch between uppercase letters to lock on or off
FN (function key)

2. xcode

There are two items under this menu that need our attention. One is about xcode, and the other is preferences.... behaviors is actually part of preferences...

2.1 about xcode

Here, we mainly check the version number of your installed xcode, especially when you have multiple versions of xcode installed locally, after you start multiple xcode versions, you can determine which version is used currently.

2.2 preferences... this is a menu with multiple tabs. 2.2.1 General here we do not need to change any settings. Show live issues: This indicates that when you edit the code, analyze your code in real time and report errors in real time. Generally Selected. Continue build after error: This is generally not of much use and can be ignored. Support wirelessly connected devices: Supports Wireless connection to your device through xcode. I have tested that it is difficult for devices to connect to your Mac computer through Bluetooth, so xcode cannot recognize your device either, ignore this. The following describes how to open a file, including opening a new window or adding a tab. It has little impact on programming. 2.2.2 behaviors we do not need to change anything here. This defines the performance of some compilers, such as whether to play the sound, play the sound, and whose sound at the beginning of compilation. For a professional programmer, we do not need to care about it, whether or not these behaviors affect our work efficiency. 2.2.3 fonts & colors: the font and color of your code are defined here, and a centralized pre-selection solution is provided. By default, your code editing area is as follows: if it is set to midnight, it is displayed as follows: This is my favorite color scheme. When using the projector to demonstrate the code, it is appropriate to select the presentation method. You can customize any option in the color scheme. You can add a custom scheme or delete an existing scheme. 2.2.4 text editing has two options: Edit and indentation. The former defines the behavior of xcode when editing code, and the latter defines the indentation method. Here, we generally do not need to change any options. The options are clearly described for their use. 2.2.5 key bindings here you can see all xcode functions, corresponding shortcut keys, and you can customize related shortcut keys. Common shortcut keys are as follows:
  1. Alt-Snapshot-up switch between the. M file and the. h file
  2. Transform-shift-D, when you want to open a file or a symbol definition that's in your project or in a framework.
  3. Resize-shift-e full screen show editor window
  4. Alt-align-left/alt-align-right, switch between opened files
  5. The tab accepts the Current Automatic completion
  6. Escape expands a list of all possible automatic completions (for example, Press ESC after the vertex to open an automatic completions list ).
  7. Control-: displays the list of possible automatic completions. Control-. inserts are most likely to be automatically completed. Control-/and shift-control-/switch between automatically completed input boxes.
  8. Values-double click on a symbol to view the definition of this type.
  9. Option-double click on a symbol to find the API document of the selected content.
  10. CMD-/automatically add the "//" comment.
  11. CTRL + left/right arrow switch between words
  12. Right-click a variable name and select edit all in scope to modify the variable name in batches in this document.
  13. Increment-[and increment-] increase or decrease indentation
  14. Double-click brackets or braces to display the brackets corresponding to them.
  15. Switch Control-shift-R to the console
  16. Control-alt-Skip-r clear logs
  17. Control-expand left/right expand or collapse the Function
  18. Shift-objective-C: display class Browser
  19. Redirect-=, jump to the next error.
  20. Locate-shift-F shows the search input box.
  21. Pipeline-shift-B shows the build window
  22. Release-shift-Y: the debug window is displayed.
2.2.6 downloads has the following two options: Initially installed, but not shown in the following list basket. We recommend that you select Check for and install updates automatically on each tab, click Check and install now. xcode has a function. When you select a class name, a place in XIB, or a keyword, a simple description will appear. If you haven't downloaded all of them here, many help descriptions cannot appear. If components does not download the 4.3 simulator, you only have one 5.0 simulator. 2.2.7 after locations in xcode, the intermediate and result files generated by the project compilation will not appear under the original project, and will appear under the set path here, that is, the first derived data. you can click the arrow behind the path to open the folder, and then you will find what you want. The others are also path-related. We will not describe them here.
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.