UIBezierPath: trying to create an array with CGPointMake
UIBezierPath: trying to create an array with CGPointMake
- Subject: UIBezierPath: trying to create an array with CGPointMake
- From: colo <email@hidden>
- Date: Mon, 20 Dec 2010 02:20:26 -0500
I'm in the processing of trying to create an array of Path points to
draw a UIBezierPath CGRectMake onto each control point.
Right now I am getting an error of
error: void value not ignored as it ought to be
I could totally be going about this the wrong way but until I know I
better I am trying to convert this
post from http://cocoawithlove.com/2008/07/coregraphics-curves-and-lines-sample.html
over to the ipad/iphone
Daunting for me but it's fun.
- (IBAction)resetControlPoints:(id)sender
{
UIBezierPath *path = [UIBezierPath bezierPath]; {
[path moveToPoint:CGPointMake(0,0)];
return path;
}
points[0] = [path moveToPoint:CGPointMake(30, 70)];
points[1] = [path moveToPoint:CGPointMake(30, 70)];
points[2] = [path moveToPoint:CGPointMake(30, 70)];
points[3] = [path moveToPoint:CGPointMake(30, 70)];
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden