I have an one view with horizontal and vertical beizer paths.The resulting view looks like the foloowing
Now on touch of the view if user has touched the one of the path,I have to change the color of that path by animation that means on touch of a path ,path's storke color will be changed animaticllay.
I am able to do it with the normal way ,that means when user touch the path I am able to change the color but not with the animation effect.
I have created the sub class of UIBeizerPath with properties like defaultStorkeColor,SelectedStorkeColor and I am manipulating them in the drawrect.
My drawrect is
-(void)drawRect:(CGRect)rect
{
CGContextRef context = UIGraphicsGetCurrentContext();
for(BCBeizerPath * path in pathsArray)
{
if(path.selected)
{
[path.selectedStrokeColor set];
}
else
{
[path.defaultStrokeColor set];
}
[path stroke];
}
}
Please help me in implementing that.