简体   繁体   中英

How to draw this line with bezierpath

Maybe someone knows how to draw this type of line with bezierpath?

在此输入图像描述

You can try using the NSShadow class to setup a blur around your path. Use 0 as X and Y offsets, and set a large blur before drawing the path.

Use +bezierPathWithRoundedRect:xRadius:yRadius: to make the "pill" shape. Set your shadow (as Laurent Etiemble suggested) and your drawing color and -fill the path. It'll be solid black with a shadow.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM