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