0

I have one requirement to show the a shape (like Home or Car etc) and depending upon the percentage of the condition will be filled with animation

See one of the example

I was trying with image but when I googled, I found this can be achieved by drawing image using Bezier curve.

enter image description here

So this is the image I am trying to draw and there are other images too.

So here are my two questions :

  • Can I achieve this using UIImage directly.
  • If not then how can i draw bezier curve for such images. How will I calculate the points.
Soniya
  • 600
  • 7
  • 34
  • Refer this link that may help you :https://developer.apple.com/library/ios/documentation/2DDrawing/Conceptual/DrawingPrintingiOS/BezierPaths/BezierPaths.html – Piyush May 02 '16 at 04:28
  • Not sure but this will help you : https://github.com/SunnyShah407/DPMeterView – Sunny Shah May 02 '16 at 04:33
  • Sunny Shah : I already referred that code and this also used bezier curve to draw shape – Soniya May 02 '16 at 07:44
  • you can use a series of images and show them accordingly, or you can use bezier path and fill it accordingly! I suggest you using paint code for this one! – Teja Nandamuri May 02 '16 at 13:00
  • 1
    this has nothing to do with Bezier curves - just use a clipping mask where your slide "green" up underneath your mask at the speed of your progress. Done. – Mike 'Pomax' Kamermans May 07 '16 at 19:41

0 Answers0