Mon projet fonctionne bien sur Mac OS X 10.10/10.9, mais il ne fonctionne pas correctement en 10.11 avec ce code:Est-ce que NSAffineTransform a un système de coordonnées différent dans Mac OS X 10.11?
[(PDFAnnotationInk*)_activeAnnotation removeBezierPath:_path];
[_activeAnnotation setBounds:bound];
// Lazy, redraw entire view.
NSAffineTransform* transform = [NSAffineTransform transform];
[transform translateXBy:-bound.origin.x yBy:-bound.origin.y];
[_path transformUsingAffineTransform:transform];
[(PDFAnnotationInk*)_activeAnnotation addBezierPath:_path];
[[_activeAnnotation page] removeAnnotation: _activeAnnotation];
[self addAnnotationSelector:_activeAnnotation];
Quand je change cette [transformer translateXBy: -bound.origin.x yBy: liØe. origine.y];
à
[transformer translateXBy: bound.origin.x yBy: bound.origin.y];
L'application fonctionne correctement sur Mac OS X 10.11, mais de façon incorrecte sur OSX 10,10/10,9 ...
Je ne sais pas pourquoi, Est-ce que NSAffineTransform ont système de coordonnées différent dans le dernier Mac OS X 10,11? Comment puis-je résoudre ce problème pour rendre l'application compatible avec 10.10/9 et 10.11? Merci.
Moi aussi! J'espère qu'ils vont résoudre ce problème – SuperBerry