我在 C 头文件中有以下结构。
typedef struct GSPathInfo {
unsigned char pathIndex; // 0x0 = 0x5C
unsigned char pathIdentity; // 0x1 = 0x5D
unsigned char pathProximity; // 0x2 = 0x5E
CGFloat pathPressure; // 0x4 = 0x60
CGFloat pathMajorRadius; // 0x8 = 0x64
CGPoint pathLocation; // 0xC = 0x68
GSWindowRef pathWindow; // 0x14 = 0x70
} GSPathInfo; // sizeof = 0x18.
在目标 C (.mm) 文件中,我正在执行以下操作:
-(void)GettingFingerSizeInfo {
CGFloat pressure = GSPathInfo.pathPressure
}
Xcode 抱怨:预期的标识符或 (