iOS ui--Doodle Artboard instance

Source: Internet
Author: User

The first is to build the framework

Other skipped, direct display effect:

Then upload and build two controller framework of the source Baidu cloud download Link: http://pan.baidu.com/s/1skjpDox password: ARDX, the project and I spent a good long time to get the icon material OH.

Then in the canvasview of the custom inheritance UIView:

Then the effect is:

Because of the logic above, each redraw will erase the previous trace. The solution, then, is to store each created path through a strongly referenced mutable array index, and then draw the array to iterate over it, drawing all the paths.

Effect:

Now you need to work with the settings brush property of Patteleviewcontroller, so you need to pass data on two controllers:

iOS ui--Doodle Artboard instance

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.