IOS Advanced Next day (0324)

Source: Internet
Author: User
0324 Creating transform
  • Transform is a deformation attribute.

Such as:

This is explained by the above method: it is relative to the initial state and does not deform on the basis of the change. If you want to keep changing, you have to change the value of TX or Ty.

If you want to make a change directly on the current transform, follow the following notation, as shown in:

Of course, rotation is the same, such as:

Of course scaling is the same, such as:

plist reading files from a local package lazy loading data

Such as:

Bundle

Such as:

Uiimageview Sequence frame animation (changing a picture every time)-Tom Cat
  • Uiimageview an API about sequence frame animations, such as:

  • Specifically implemented as shown in:

%02d represents two digits before the decimal point, not enough for two bits to replace with 0. %.2d means two digits after the decimal point, less than two bits with 0 complement

Note that there is a problem with the above code, the memory will skyrocket, the method is to wait until the full completion of the animation and then empty animationimages, free memory. As shown in:

Or

Note Possible interview questions: Can you think of several delays? A: 3.

UIImage cache and do not cache

Such as:

UIButton and Uiimageview

Summarized as:

In summary, any control that inherits from Uicontrol can add events in a addtarget way. Like UISlider.

IOS Advanced Next day (0324)

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.