0

I am following How To Create a Rotating Wheel Control with UIKit tutorial to create a spinning wheel.

I have 26 sectors in my wheel. The sector image provided on this site is overlapping each other for 26 sectors. What should be the ideal size of sector image to fit appropriately.

enter image description here

Robert Columbia
  • 6,313
  • 15
  • 32
  • 40
shakshi
  • 231
  • 1
  • 2
  • 9
  • Uh? Obviously the sector image should have the shape of a pie piece, with an angle of 2*M_PI/26. Do I misunderstand your question? – fishinear Jul 31 '16 at 11:30
  • You understood it right. The tutorial's sector image is in the ratio 90:70, so in this case also the size should be same? – shakshi Aug 01 '16 at 10:43
  • What's important is that it should be in the shape of a pie piece of the correct angle, with the rest of the image transparent. What the actual HxW size of the image is, is then not that important (the current size you're using looks ok). – fishinear Aug 01 '16 at 13:04

0 Answers0