iOS development NSBundle, Uiimageview, and UIButton summary

Source: Internet
Author: User

1.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

2.UIImageView and UIButton

1> Use occasions

*uiimageview: If the image is only displayed, you do not need to listen to the image click

*uibutton: That is to display the picture, but also listen to the image of the click

2> the same point: can display the picture

3> different points:

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

*uibutton can display both pictures 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 are not handled by default long

iOS development NSBundle, Uiimageview, and UIButton summary

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.