• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

vgios: A lightweight 2D vector drawing framework for iOS.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

vgios

开源软件地址:

https://gitee.com/vg/vgios

开源软件介绍:

TouchVG for iOS

This is a lightweight 2D vector drawing framework using TouchVGCore for iOS.It uses the CoreGraphics and UIKit frameworks to render shapes and handle gestures.

Features described in Online document. Please visit TouchVG Demo to see more examples.

arch

iphone1 | iphone2

License

This is an open source LGPL 2.1 licensed project. It uses the following open source projects:

How to Contribute

Contributors and sponsors are welcome. You may translate, commit issues or pull requests on this Github site.To contribute, please follow the branching model outlined here: A successful Git branching model.

Welcome to the Chinese QQ group 192093613 to discuss and share.

Contributors

How to Compile

Compile TouchVG with CocoaPods

Type pod install or pod update --no-repo-update, then open TouchVG.xcworkspace in Xcode, then build the TouchVG or TouchVG-SVG target.

  • Remove libPods-TouchVG-TouchVG-SVG.a and libPods-TouchVG.a from Link Binary With Libraries.
  • libTouchVG.a does not support SVG display.
  • libTouchVG-SVG.a can display SVG shapes using [SVGKit](https://github.com/SVGKit/SVGK

Compile TouchVG without CocoaPods

Alternatively, you can build as one of the following methods:

  • Open TouchVG/TouchVG.xcodeproj in Xcode, then build the TouchVG or TouchVG-SVG target.

    • libTouchVG.a does not support SVG display.
    • libTouchVG-SVG.a can display SVG shapes using SVGKit.
  • Or type ./build.sh to compile static libraries to the output directory.

    • Type ./build.sh -arch arm64 to make for iOS 64-bit.
    • Type ./build.sh clean to remove object files.it).

Use TouchVG with CocoaPods

TouchVG is available on CocoaPods. Just add the following to your project Podfile:

pod 'TouchVG'

Or use the develop version:

pod 'TouchVG', :podspec => 'http://git.oschina.net/vg/vgios/raw/develop/podspec/TouchVG.podspec'

Or add the following to use SVG rendering feature with SVGKit:

pod 'TouchVG-SVG', :podspec => 'http://git.oschina.net/vg/vgios/raw/develop/podspec/TouchVG-SVG.podspec'

Then type pod install or pod update --no-repo-update. Need to copy podspec/SVGKit.podspec to ~/.cocoapods/repos/master/Specs/SVGKit/2.0/ to use the lastest version of SVGKit.

Use TouchVG without CocoaPods

  • Add libTouchVG.a and libTouchVGCore.a to your project, or set OTHER_LDFLAGS as -lTouchVGCore -lTouchVG.

  • If the error Undefined symbols for architecture ...in libTouchVGCore.a occurs, then change the source file which uses TouchVG as *.mm rather than *.m to link with C++ classes.

Add more shapes and commands

  • You can use newproj.py to create library project containing your own shapes and commands. So the TouchVG and TouchVGCore libraries does not require changes.

    • Checkout and enter DemoCmds directory, then type python newproj.py YourCmds:

      git clone http://git.oschina.net/vg/DemoCmds.gitcd DemoCmdspython newproj.py MyCmds

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap