When I need to add a integer to an array I use
[myArray addObject:[NSNumber numberWithInt:myInt]];
but what about CGPaths? How do I add them to the array?
I need something like
"[NSValue valueWithCGPath:myPath]"... ???!!!
any clues? thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest way if you can target iOS 3.2 or higher is to wrap the
CGPathRefin aUIBezierPath:If you need to support earlier iOS versions, you can use a
CFArrayinstead ofNSArraybecauseCGPathderives fromCFType.