Home How to add curves to UIView.
Reply: 1

How to add curves to UIView.

AnonProgrammer
1#
AnonProgrammer Published in 2017-12-07 18:32:54Z

I'd like to recreate the curved view as seen at the bottom of iPhone screen. Is the best way to recreate in Sketch and apply to UIImageView? Or is there some well known or simple way to use bezier paths?

Caleb
2#
Caleb Reply to 2017-12-07 19:29:27Z

Or is there some well known or simple way to use bezier paths?

UIBezierPath is pretty well known. The path you're looking to recreate looks like it's made up of arcs and lines, so I'd look at the addArcWithCenter:radius:startAngle:endAngle:clockwise: and addLineToPoint: methods. Using an image for such a simple shape seems like more trouble than it's worth.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.298916 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO