Uiimageview frame animation related properties and methods in iOS

Source: Internet
Author: User

@property (nonatomic,copy) Nsarray *animationimages;

An array of sequence images that need to be played (all of them are uiimage objects, and the images are displayed sequentially)

@property (nonatomic) Nstimeinterval animationduration;

Duration of frame animation

@property (nonatomic) Nsinteger Animationrepeatcount;

Number of execution times for frame animations (default is infinite loop)

-(void) startanimating;

Start the animation execution

-(void) stopanimating;

Stop performing frame animations

-(BOOL) isanimating;

Determine if an animation is being performed

Two kinds of loading modes of uiimage

Mode 1: There is a cache (the memory occupied by the picture remains in the program)

>+ (UIImage *) imagenamed: (NSString *) name;

Where name is the file name of the picture

Mode 2: No cache (the memory occupied by the picture is cleared on some specific operations backs)

> + (UIImage *) Imagewithcontentoffile: (NSString *) path;

>-(ID) Initwithcontentsoffile: (nssstring *) path;

Where path is the full path of the picture

PS: Full path with nsbundle access

Uiimageview frame animation related properties and methods in iOS

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.