Highlights of iOS development issues (1)

Source: Internet
Author: User

Recently, many people in the QQ Group asked some basic questions, which are listed here:

1. The slash key on the keyboard breaks down. How can I use a shortcut key to comment out it?

First, the default shortcut for annotation in Xcode is: command + /;

Next, you can modify the shortcut Key: Xcode> Preferences...> Key Bindings, as shown in

2. The navigation area in Xcode is disabled. How can I call it out? For example:

There are three View selection buttons on the right of the toolbar. Select the first option and the navigation area on the left will appear, as shown in the red box:

For an explanation of the Xcode programming environment, I will introduce a book "getting started with iOS game development", published by Tsinghua University Press, and translated by Liu fan. The second chapter of this book will be explained in detail.

3. the toolbar in Xcode is gone. After exiting Xcode, it will not come in again. How can I call it out? For example:

If the Toolbar is visible, the blue selected area is the Hide Toolbar. If the Toolbar is invisible, the Show Toolbar is selected.

4. In a View, there is a background image with several labels and buttons, but only the background image is displayed at runtime, without the Label and Button.

Later it was found that the background image was placed at the top layer and other contents were blocked.

Here I will talk about the background image settings. I know two ways:

1) write the code: [self. view setBackgroundColor: [UIColor colorWithPatternImage: [UIImage imageNamed: @ "bg"];

2) drag the image directly to the xib View, but the image must be placed at the bottom of the view, for example:

  

5. How to modify the UITextField height?

The default height of UITextField cannot be modified, but you can modify the Border Style. For example, you can modify the height of the last (default) Style.

Generally, in a project, the UITextField border is designed by the UI, so select the first borderless border.

6. Which blue file is called in the implementation file when the following code is written in the header file?

       buleController *  property(nonatomic, strong) buleController *bule;

1) when writing a bule directly, it calls @ interface testController: UIViewController {buleController * bule;} Here's blue;

2) When writing _ bule and self. bule, the call is the property (nonatomic, strong) buleController * bule;

_ Bule syntax and @ interface testController: UIViewController {buleController * bule;} call the blueSimilar

Self. bule is the get and set methods of the called property (nonatomic, strong) buleController * bule;

Write it here today, and write it next time...

 

Copyright statement: This article by http://wzrong.cnblogs.com or http://iostour.diandian.com original, welcome to repost share. Please respect the work of the author. Keep this note and the author's blog link when reprinting. Thank you!

 

 

Original article. If you need to reprint it, please indicate the source. Thank you!

You are welcome to visit our technical microblog @ iOS to learn from each other and make progress together!

Welcome to my weibo @ Wei zhirong

 

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.