我将一些联署材料移植到本地的 ObjC 代码中。 因为支架不能在阵列内安装, 需要包装它 。
联署材料守则如下:
var bezierVertices = [{0: 14},{10: 32},{24: 16}];
JS:对匿名物品进行拼写。
我受以下要求的约束: 代码是否尽可能紧凑,意思是说,在使用[NSValue value value withCGPoint:ccp(x,y)]提出NSValue 的NSValue 国家空间空间系统时,我被拒绝了。
他们想要像上述联署材料那样紧凑。
Before writing something as ugly as an NSString like @"0:14;10:32;24:16"; that s split and parsed in a loop, I thought SO could help bring something clean :) I m allowed to use .mm so ObjC++ solutions could fit as well, but I m not knowledgeable about C++ at all...
Thanks! J.