开发者

Cannot Archive Array of Values Representing CGPoints

开发者 https://www.devze.com 2022-12-23 13:37 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号