这很棒:
NSArray *myArray = @[0, M_PI];
NSDictionary *myDict = @{@"item":anItem, @"another":somethingElse};
//etc.
但这很乏味:
[baseline moveToPoint:NSPointFromCGPoint(CGPointMake(0, baselinePosition))];
[baseline lineToPoint:NSPointFromCGPoint(CGPointMake(self.bounds.size.width, baselinePosition))];
有什么@(0, 0)
可以简化在代码中编写点文字的方法吗?