cgaffinetransformscale Questions
3
Solved
Let's say I scale a UILabel using a CGAffineTransformScale like so:
let scale = 0.5
text = UILabel(frame: CGRectMake(100, 100, 100, 100))
text.text = "Test"
UIView.animateWithDuration(2.0, delay:...
Swayder asked 21/4, 2016 at 22:2
15
Solved
I'm trying to do scale animation for UIButton when its clicked but what I'm trying to accomplish is when the button clicked I need the UIButton to be smaller to the inside then it comes back ...
Traitorous asked 9/7, 2015 at 14:42
2
Solved
I am rounding a UIBUtton, which is fine (self is a uibutton subclass):
self.layer.cornerRadius = self.frame.size.width/2;
self.layer.masksToBounds = YES;
self.clipsToBounds = YES;
But I am also...
Depressomotor asked 2/1, 2014 at 22:10
2
I'm trying to animate a custom button using CGAffineTransformMakeScale as follows:
if (stateButton == 0) { //The button is gonna appear
self.selected = YES;
self.imageView.transform = CGAffine...
Morrill asked 8/10, 2013 at 12:10
2
Solved
I think my question can be summed up as how to store and reset the transform of a view. But then perhaps explaining my situation might help.
If I apply the transforms below to a view, one after a...
Pinniped asked 8/1, 2013 at 13:31
3
Solved
I'm probably missing something simple, but trying to do a simple "Ken Burns Effect" with an image view.
First the code:
[UIView animateWithDuration:20
delay:2
options:UIViewAnimationCurveLinear...
Holmquist asked 6/12, 2012 at 0:24
1
Solved
This gesture recognizer code below, which normally would scale a view from the center, does not when auto-layout is enabled in iOS6. The view seems to scale from it's origin when auto layout is ena...
Jarred asked 21/9, 2012 at 9:40
1
© 2022 - 2024 — McMap. All rights reserved.