美文网首页
添加CGPoint对象到一个NSArray

添加CGPoint对象到一个NSArray

作者: milk_powder | 来源:发表于2016-09-01 14:09 被阅读78次
NSArray *points = [NSArray arrayWithObjects: [NSValue valueWithCGPoint:CGPointMake(0, 0)], [NSValue valueWithCGPoint:CGPointMake(0, 1)], nil];
NSValue *value = [points objectAtIndex:0]; //例如取出第一项
CGPoint point = [value CGPointValue];

相关文章

网友评论

      本文标题:添加CGPoint对象到一个NSArray

      本文链接:https://www.haomeiwen.com/subject/angcettx.html