ios--Summary Series One

Source: Internet
Author: User

1.IBAction:

1> can guarantee that the method can be wired

2> equivalent to void

2.IBOutlet:

1> can ensure that attributes can be wired

3. Common errors

Setvalue:forundefinedkey:]: This class was not key value coding

The reason for the error is: the connection problem

Some suggestions for 4.XCODE5 start

The methods and properties used for wiring are declared in the class extension of the. m file, guaranteeing its encapsulation.

5.frame\center\bounds

1> frame: Can modify position and size

2> Center: Can modify position

3> bounds: Can modify the size (X\y is generally 0)

6.NSBundle

1> a nsbundle represents a folder, with NSBundle access to the corresponding folder

2> can access any resource in the software resource bundle using Mainbundle

Installation path for the 3> emulator application

/users/aplle/Resource Library/application Support/iphone simulator/7.1/applications

7.UIImageView and UIButton

1> Use occasions

* Uiimageview: If you only display pictures, do not need to listen to the image of the click

* UIButton: Both display the picture, but also listen to the image of the click

2> same: can display picture

3> different points

* UIButton can handle click events, Uiimageview cannot handle click events

* UIButton can display both picture and text

* UIButton can display two pictures at the same time

* UIButton inherits from Uicontrol, so events can be handled by default

* Uiimageview inherits from UIView, so events cannot be handled by default

8.Xcode Document Installation Path

/applications/xcode.app/contents/developer/documentation/docsets

9.Xcode Simulator Installation path

/applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/sdks

ios--Summary Series One

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.