title: iOS Draw the same shape multiple times
body: <p>need some help with quartz 2d, it is completely new for me.</p>
  
  <p>Basically my app needs to follow the touch, draw that line starting from center multiple times. The issue is that it has to be dynamic and the lines have to be on equally spread( kind of like octopus starting from center). The way I have it on android is that I remember the shape paths in array, than draw it multiple times with rotating the coordinate system, but I cannot figure out how to do it on iOS. </p>
  
  <p>My rotate function </p>
  
  <pre><code>- (void) rotateContext:(int)angle 
  {
  
  
      CGContextTranslateCTM(UIGraphicsGetCurrentContext(), self.center.x, self.center.y);
      CGContextRotateCTM(UIGraphicsGetCurrentContext(), radians(angle));
      CGContextTranslateCTM(UIGraphicsGetCurrentContext(), -self.center.x, -self.center.y);
  
  
  }
  </code></pre>
  
  <p>It only works if I try do do it in drawRect(), and it rotates all the paths with it.</p>
  
  <p>Can you please suggest me a good way to solve the problem?</p>
  
  <p>Thanks</p>