Graphics and paints for iOS systems

Source: Internet
Author: User
Tags uikit

1. iOS offers two high quality graphics rendering methods: A. OpenGL es for rendering B.quartz,core Animation, Uikit for drawing

2. The OpenGL ES Framework is mainly applicable to game or high frame rate application development. A C-language based interface for creating 2D and 3D content.

Graphics system of Uikit

3. All the paints in iOS, regardless of OpenGL ES, Quartz, Uikit, or core Animation, occur in the area of the UIView object.

4. UIView invoke DrawRect to trigger a view update is the following:

A. Removing or removing other views of the occlusion view

B. Set the hidden property to no so that it changes from hidden to display state

C. Will attempt to scroll out of the screen and back to the screen

D. The call shown Setneedsdisplay or Setneedsdisplayinrect

5. Ways to improve the performance of the painting:

A. Make the redraw area the smallest

B. Identify the view area as opaque as possible, opaque set to Yes

C. Delete the alpha channel in an opaque PNG file and remove the alpha channel from the opaque PNG file to avoid merging the layers that contain the image, thus greatly simplifying the image synthesis and improving the painting performance.

D. Reusing an existing view during scrolling

E. Avoid purging the original content during scrolling, and by default, Uikit clears the context buffer for the area before the DrawRect method is invoked to update a region of the view. If the buffer is cleared during scrolling, it can be costly to set the Clearscontextbeforedrawing property to No.

Related Article

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.