As Martin R points out CGPoint is a struct, not a class. That being said, there is no built in method for this. You could use CGPoint an just cast accordingly throughout your code, or you can define your own struct like this:
struct CGIntegerPoint {
NSInteger xPos;
NSInteger yPos;
};
typedef struct CGIntegerPoint CGIntegerPoint;
CG_INLINE CGIntegerPoint CGIntegerPointMake(NSInteger x, NSInteger y) {
CGIntegerPoint point;
point.xPos = x;
point.yPos = y;
return point;
}
This now gives you a new declared type CGIntegerPoint, and a corresponding static inline function CGIntegerPointMake() which takes two arguments (x,y) and returns a CGIntegerPoint.
Note: In the future, you may find it helpful to command-click on types in Xcode. Doing so will jump you to the type's definition, which in this case, is also it's implementation.