2010-10-22 43 views

回答

0

我找到了答案我的问题, 1. NSValue包含CGPoint值(CGPoint是C结构)首先我们必须做铸造[NSValue valueWithCGPoint:anyCGPoint];现在我们可以将它保存到NSMutableArray中。 2.要将NSMutableArray保存到Coredata中,首先必须将其转换为NSSet。这将通过Coredata的一对多关系来完成。

+0

可以请提供关于您的“2”点的更多详细信息。我也在寻找相同的方法。 – ajay 2012-04-03 03:46:03

+0

@ajay看看这些文章会很有用[link1](http://www.theappcodeblog.com/2011/09/29/iphone-app-development-tutorial-core-data-part-2-one -to-many-relationship /),[link2](http://stackoverflow.com/questions/5399195/where-can-i-find-a-good-example-of-a-core-data-to-many -关系) – theDebugger 2012-04-04 06:17:17