J'ai une méthode comme ceci:Rédaction d'une macro pour cela: (Objective-C)
- (CGPoint) _convertCGPointCT2UIKit:(CGPoint)ctPoint{
CGPoint uikitPoint = CGPointMake(ctPoint.x + INITIAL_HORIZ_OFFSET,
self.bounds.size.height - ctPoint.y - INITIAL_VERT_OFFSET);
return uikitPoint;
}
Est-il possible que je peux faire une macro? J'ai essayé cela mais j'ai des erreurs comme "; attendu avant" et ainsi de suite.
#define CGPointUIKit2CT(p) CGPointMake(p.x - INITIAL_HORIZ_OFFSET, self.bounds.size.height - p.y - INITIAL_VERT_OFFSET);
merci d'avance.
Ignacio
Aïe! Quelle erreur stupide. un deux-points! Merci Chris – nacho4d