title: Scaling with touchesMoved:
body: <p>I have a <a href="http://i.imgur.com/Hgmjn.png" rel="nofollow">pie chart</a> which is made using UIBezierPath's. I now need those individual paths (pie pieces) to be scalable. I believe you need a view to be able to use pinch scaling, so I think touchesMoved: is the way to go (unless there's a workaround).</p>
  
  <p>Any advice or help is appreciated! </p>
  
  <p><strong>Updated/Progress code</strong></p>
  
  <p>MySliceClass.m</p>
  
  <pre><code>+ (UIBezierPath *)sliceRadius:(float)radius andStartingAngle:(float)startingAngle andFinishingAngle:(float)finishingAngle
  {
    static UIBezierPath *path = nil;
    path = [UIBezierPath bezierPath];
    CGPoint center = {300,300};
    [path moveToPoint:center];
    [path addArcWithCenter:center radius:radius startAngle:radians(startingAngle) endAngle:radians(finishingAngle) clockwise:YES];
    [path closePath];
    path.lineWidth = 1;
  
    [[UIColor redColor] setFill];
    [path fill];
  
    return path;
  }
  </code></pre>
  
  <p>MySliceView.m</p>
  
  <pre><code>- (void)drawRect:(CGRect)rect 
  {
    NSArray *arrayOfSlices = [NSArray arrayWithObjects:
                              slice01 = [WordplaySlice sliceRadius:200 andStartingAngle:0.5 andFinishingAngle:29.5],
                              slice02 = [WordplaySlice sliceRadius:200 andStartingAngle:30.5 andFinishingAngle:59.5],
                              slice03 = [WordplaySlice sliceRadius:200 andStartingAngle:60.5 andFinishingAngle:89.5],
                              slice04 = [WordplaySlice sliceRadius:200 andStartingAngle:90.5 andFinishingAngle:119.5],
                              slice05 = [WordplaySlice sliceRadius:200 andStartingAngle:120.5 andFinishingAngle:149.5],
                              slice06 = [WordplaySlice sliceRadius:200 andStartingAngle:150.5 andFinishingAngle:179.5],
                              slice07 = [WordplaySlice sliceRadius:200 andStartingAngle:180.5 andFinishingAngle:209.5],
                              slice08 = [WordplaySlice sliceRadius:200 andStartingAngle:210.5 andFinishingAngle:239.5],
                              slice09 = [WordplaySlice sliceRadius:200 andStartingAngle:240.5 andFinishingAngle:269.5],
                              slice10 = [WordplaySlice sliceRadius:200 andStartingAngle:270.5 andFinishingAngle:299.5],
                              slice11 = [WordplaySlice sliceRadius:200 andStartingAngle:300.5 andFinishingAngle:329.5],
                              slice12 = [WordplaySlice sliceRadius:200 andStartingAngle:330.5 andFinishingAngle:359.5], nil];                             
  }
  </code></pre>