iOS Development UI Foundation Uiimageview Property Properties

Source: Internet
Author: User


Uiimageview Property

1.Image set Picture, default display
Uiimageview *_imageview = [[Uiimageview alloc]init];

_imageview.image = [UIImage imagenamed:@ "Me.png"];

2.highlightedImage set the picture displayed in the highlighted state
_imageview.highlightedimage = [UIImage imagenamed:@ "Other.png"];

3.animationImages set image array for sequence frame animations
[_imageview Setanimationimages:[nsarray Array]];
4.highlightedAnimationImages sets a picture array of sequence frame animations in the highlighted state
[_imageview Sethighlightedanimationimages:[nsarray Array]];

5.animationDuration set sequence frame animation playback often
[_imageview setanimationduration:0.3f];
6.animationRepeatCount sets the number of times the sequence frame animation plays
[_imageview Setanimationrepeatcount:2];
7.userInteractionEnabled Set whether user interaction is allowed, user interaction is not allowed by default
[_imageview Setuserinteractionenabled:yes];

8.highlighted setting is a highlighted state, default is normal
_imageview.highlightedimage = [UIImage imagenamed:@ "Other.png"];
[_imageview Sethighlighted:yes];

Note that the picture that is set in the highlighted state and the sequence frame animation to be displayed must be set at the same time as the Uiimageview state is highlighted.

iOS Development UI Foundation Uiimageview Property Properties

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.