On 19 Aug 2012, at 00:18, Matt Neuburg wrote:
> On Mon, 06 Aug 2012 00:11:39 +0700, "Gerriet M. Denkmann"
> said:
>> I use this code (iOS 5.1):
>> CGAffineTransform m = { c, +s, -s, c, 0, 0 }; // rotation, s =
>> sin(angle), c = cos(angle)
>> CALayer *layer = self.view.layer;
On Mon, 06 Aug 2012 00:11:39 +0700, "Gerriet M. Denkmann"
said:
> I use this code (iOS 5.1):
> CGAffineTransform m = { c, +s, -s, c, 0, 0 }; // rotation, s =
> sin(angle), c = cos(angle)
> CALayer *layer = self.view.layer; // view is UIView, self is
> subclass of U
FWIW: UIView sets the delegate of its CALayer to itself - one of the things
that it appears to do is to disable any implicit animations. If you add your
own CALayer to a UIView's CALayer, then you're in full control. As already
pointed out, it's easier using one of the UIView animation class method
You are most welcome. It took me a while to find the cleanest solution for
rotating views in my project and I wanted to give it to you to save you some
headaches...
Mit freundlichem Gruß.
[[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBestRegards];
Op 5 aug. 2012, om 21:08 heeft
On 6 Aug 2012, at 01:48, Richard Altenburg (Brainchild) wrote:
>[UIView animateWithDuration:durationSeconds
> animations:^
> {
> [view setTransform:CGAffineTransformRotate([view transform],
> angleRadians)];
> }
> ];
>
Thanks! (or: Dank U we
Something along these lines maybe?:
[UIView animateWithDuration:durationSeconds
animations:^
{
[view setTransform:CGAffineTransformRotate([view transform],
angleRadians)];
}
];
[[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBest
On 6 Aug 2012, at 01:01, Kyle Sluder wrote:
> On Aug 5, 2012, at 10:34 AM, "Gerriet M. Denkmann"
> wrote:
>
>> I tried instead:
>> //opacity is 0.5
>> [ CATransaction begin];
>> [ CATransaction setAnimationDuration: 9 ];
>> layer.opacity = 1;
>> [ CATransaction commit];
>>
>>
On Aug 5, 2012, at 10:34 AM, "Gerriet M. Denkmann" wrote:
> I tried instead:
>//opacity is 0.5
>[ CATransaction begin];
>[ CATransaction setAnimationDuration: 9 ];
>layer.opacity = 1;
>[ CATransaction commit];
>
>[ CATransaction begin];
>[ CATransaction setAnim
On 6 Aug 2012, at 00:20, Kyle Sluder wrote:
> On Aug 5, 2012, at 10:11 AM, "Gerriet M. Denkmann"
> wrote:
>
>> I use this code (iOS 5.1):
>> CGAffineTransform m = { c, +s, -s, c, 0, 0 };//rotation, s =
>> sin(angle), c = cos(angle)
>> CALayer *layer = self.view.layer;//vie
On Aug 5, 2012, at 10:11 AM, "Gerriet M. Denkmann" wrote:
> I use this code (iOS 5.1):
>CGAffineTransform m = { c, +s, -s, c, 0, 0 };//rotation, s =
> sin(angle), c = cos(angle)
>CALayer *layer = self.view.layer;//view is UIView, self is
> subclass of UIViewController
>
10 matches
Mail list logo