vendredi 3 avril 2015

CGAffineTransformMakeScale not working - OS X - Cocoa


Vote count:

0




I have a simple Mac app that I am developing. I want to be able to apply a transform on a NSButton and make it bigger. Twice its size. However my code is not working, it just slides the button to a corner. Does anyone know what is wrong?



[NSAnimationContext runAnimationGroup:^(NSAnimationContext *context) {

[numberButton1.animator.layer setAffineTransform:CGAffineTransformMakeScale(4.0, 4.0)];
numberButton1.layer.anchorPoint = CGPointMake(0.5, 0.5);
[numberButton1.animator.layer setAffineTransform:CGAffineTransformMakeScale(1.0, 1.0)];

} completionHandler:nil];


asked 1 min ago







CGAffineTransformMakeScale not working - OS X - Cocoa

Aucun commentaire:

Enregistrer un commentaire