NSArray *points = [NSArray arrayWithObjects: [NSValue valueWithCGPoint:CGPointMake(0, 0)], [NSValue valueWithCGPoint:CGPointMake(0, 1)], nil];
NSValue *value = [points objectAtIndex:0]; //例如取出第一项
CGPoint point = [value CGPointValue];
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
网友评论