V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
yfmir
V2EX  ›  iDev

如何画出完美的圆形?

  •  
  •   yfmir · Jun 26, 2015 · 4271 views
    This topic created in 3964 days ago, the information mentioned may be changed or developed.
    用CAShapeLayer画圆,用strokenEnd来控制百分比,结果画出来的圆会出现不圆的情况

    10 replies    2015-06-27 13:11:32 +08:00
    Imyssed
        1
    Imyssed  
       Jun 26, 2015
    Windows Paint
    不过你这问题问的奇怪。真正的圆形目前是画不出的,毕竟像素点。
    稍微标准的圆随便哪个画图软件都能画吧。○
    yfmir
        2
    yfmir  
    OP
       Jun 26, 2015
    @Imyssed 用代啊码亲
    haosxianr
        3
    haosxianr  
       Jun 26, 2015
    可以试一下这个,能满足你的需求,还能有动画效果: https://github.com/kirualex/KAProgressLabel
    yfmir
        4
    yfmir  
    OP
       Jun 26, 2015
    @haosxianr 好吧,看来得要用CG画了
    liushuaikobe
        5
    liushuaikobe  
       Jun 26, 2015
    参考下这个,一个KSProgressLabel的裁剪版本 https://github.com/liushuaikobe/LSKRoundedProgressView
    Imyssed
        6
    Imyssed  
       Jun 26, 2015
    momo1999
        7
    momo1999  
       Jun 26, 2015
    画一个2x的,再缩小
    buydip
        8
    buydip  
       Jun 26, 2015
    view.layer.cornerRadius = view.bounds.size.width / 2.0;
    sadaharu09
        9
    sadaharu09  
       Jun 26, 2015 via iPhone
    Ai可以转换为矢量图即可。
    c742435
        10
    c742435  
       Jun 27, 2015
    @shuax 顶你
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2496 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 08:03 · PVG 16:03 · LAX 01:03 · JFK 04:03
    ♥ Do have faith in what you're doing.