How to add CGPoint to NSMutableArray
CGPoint is a C structure not an object. So you can’t add CGPoint to NSMutableArry directly.
But you can use NSValue to convert it to object. like this:
|
|
It is very simple to get this value .
|
|
CGPoint is a C structure not an object. So you can’t add CGPoint to NSMutableArry directly.
But you can use NSValue to convert it to object. like this:
|
|
It is very simple to get this value .
|
|