How to Use xcode more efficiently and comprehensively in IOS (1)

Source: Internet
Author: User

How to Use xcode more efficiently and comprehensively in IOS (1)

This is the most basic problem, because you must be familiar with this tool to learn ios development. Some people have been developing IOS for two years, but they do not know how to develop it more effectively. We will discuss various methods and methods here, so that you can make better use of tools for effective development. Good developers must make good use of tools.

Making good use of tools can greatly improve efficiency

Xcode is a powerful development tool, which is easy to use and affects development efficiency.

First, let's start with three aspects: 1. Search for things 2. Common shortcuts 3. introduce several other convenient development tools

 

I. Search for things

Sometimes there are many classes and there are many methods. When you want to change a class, you have to open their respective folders and click them in. It is very time-consuming.

For example, you can use this search to search for this type and modify it.

 

 

Sometimes it is very difficult to find a method or attribute in the class at. Please refer:

 

 

This search is based on command + F in the class. It is convenient to search for a property and method.

You can also use the following method to jump to a specific method: (click the place where the red line is drawn), which is faster than searching!

 

 

The above search is convenient for development! The following is the search in targets and project:

An old employee asked me where to add-fno-objc-arc or-f-objc-arc. (For more information, see:

Http://blog.csdn.net/rhljiayou/article/details/8103939 ).

I told him about Compile Sources under the Buid Phases under targets. The result is that the order of the files to be added is messy, and then he does not know what to do. Because there are many files, he cannot find them one by one, then I told him that he could use the search function (isn't it much easier ?) :

 

It seems that search is very important in our development, so I hope you will be good at using search to solve problems. Similarly, a search other than xcode:

Control + F (turn on Spotlight): Spotilight helps you quickly find things on your computer. Spotlight is located in the upper right corner of the screen. This tool is very powerful!

 

Ii. Common shortcuts

Command + R run

Command + B Compilation

Command + shift + k clean clear project

Command + I search for the detection tool Profile

The shortcut key used to edit the code (Control + ):

Control + F move to the right

Control + B Move to the left

Control + P move to the previous row

Move Control + N to the next row

Move Control + A to the first line

Control + E move to the end of the row

Control + D Delete characters on the right of the cursor

Control + K Delete the code on the right of the row where the cursor is located

Control + L place the insert point in the center of the window

 

There are many ways to open something in Xcode. The following describes three methods to open something in different ways,

Three methods are described as follows:

1. Open the menu directly

 

2. command + I (shortcut key) (the fastest way)

3. Press the run key to open the drop-down menu. Select the third one.

 

Therefore, you can open the same things in different ways and find the most pleasant way to use them.

 

Iii. introduce several other convenient development tools

Making good use of tools can greatly improve efficiency

Two useful tools

Left side: Only 1024 of the graph is required. Any icon can be generated. Including the iphone pad, all required sizes. Usage. You can download it and try again.

On the right side: Powerful batch file rename. Wildcards are supported. A very convenient tool, for example, to append @ 2x in batches, this tool can be done!

Download link http://download.csdn.net/detail/rhljiayou/6767345
(Only for technical exchange, delete within 24 hours)

The two tools are quite practical for my work.

 

If you have any questions or comments, go to the group to discuss 113820038 or leave a message. The Group will publish a weekly topic for discussion and share it with you. Welcome to join. Make common progress and help each other.

 

 

 

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.