iOS Drawing Example 1: Using Storyboard

Source: Internet
Author: User

    1. Create a project using wizards such as single View Wizard

    2. Import TOUCHVG in the Podfile file:

      Platform:ios, ' 6.0 ' pod ' TOUCHVG '

      Then run the pod install download TOUCHVG code. Subsequent runs speed pod update --no-repo-update up the download without checking the latest version every time.

      Then open *.xcworkspace into Xcode.

    3. will be ViewController.m changed to ViewController.mm . TOUCHVG is implemented in C + +, at least one file in the program engineering is a. mm suffix, or a link error occurs.

    4. Open the Main.storyboard, drag a new view to the main page, set the class for this new one, GiPaintViewXIB add the string property with the value, as shown in the image on the splines command left. This property automatically launches the Scribble Curve command, after which the hand-drawn effect is displayed as shown in the image on the right.

      You can set more properties to get the following freehand effect. Attributes allow you to specify drawing effects at the interface design stage without having to write the appropriate drawing code. The available drawing properties are shown in GiPaintViewXIB.h.

Sample code See GitHub or OSC, Welcome to Fork.

iOS Drawing Example 1: Using Storyboard

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.