I have converted CGPoint
To NSValue
and开发者_开发技巧 put all the resulting values in q NSArray
but when I use [NSKeyedArchiver archiveRootObject:ArrayName toFile:PointArrayFile];
it gives me error.
So what's the problem?
You don't say what problem you're seeing but in general you're probably better off using NSStringFromCGPoint
and CFPointFromString
to store and retrieve the points.
精彩评论