Reputation: 2121
Just curious, how do I store this struct into a property
void CGContextAddCurveToPoint (
CGContextRef c,
CGFloat cp1x,
CGFloat cp1y,
CGFloat cp2x,
CGFloat cp2y,
CGFloat x,
CGFloat y
);
like
@property (strong, nonatomic) void ??
Upvotes: 0
Views: 707
Reputation: 11537
What you are presenting in your question is not a struct
it is a method
.
It is possible to do the following though. Declare a struct first:
typedef struct
{
CGContextRef c;
CGFloat cp1x;
CGFloat cp1y;
CGFloat cp2x;
CGFloat cp2y;
CGFloat x;
CGFloat y;
} yourStruct;
and secondly declare a property that will have a type specification of yourStruct
e.g: @property yourStruct yourPropertyName;
Upvotes: 2