[教程]如何把CGPoint放入数组中

转载自:http://bbs.weiphone.com/read-htm-tid-590862.html

把CGPoint放入数组的过程是这样的:

NSArray *array=[NSArray arrayWithObjects:NSStringFromCGPoint(0.0f,0.0f),NSStringFromCGPoint(0.0f,0.0f),nil];

从数组中取值的过程是这样的:

CGPoint point=CGPointFromNSString([array objectAtIndex:2]);

你可能感兴趣的:(poi)