You can simply use the code of piechart provided on this blog(HERE) and clear smaller circle in the center with kCGBlendModeClear on as shown in code of lines below.
CGContextSetFillColorWithColor( context, [UIColor whiteColor].CGColor );
CGContextSetBlendMode(context, kCGBlendModeClear);
CGRect holeRect= CGRectMake((_outerRadius-_innerRadius)/2, (_outerRadius-_innerRadius)/2, _innerRadius, _innerRadius);
CGContextFillEllipseInRect( context, holeRect );
Great post your given information does help me a lot knowing that you have shared this information here freely.
ReplyDeleteMSI - 17.3" Laptop - 16GB Memory - 750GB Hard Drive + 256GB Solid State Drive - Brush Aluminum Black
MSI - 15.6" Laptop - 12GB Memory - 750GB Hard Drive - Brush Aluminum Black