CALayer *touchedLayer = [self.view layer];

	// here is an example wiggle
	CABasicAnimation *wiggle = [CABasicAnimation animationWithKeyPath:@"transform"];
	wiggle.duration = 0.1;
	wiggle.repeatCount = 1e100f;
	wiggle.autoreverses = YES;
	wiggle.toValue = [NSValue valueWithCATransform3D:CATransform3DRotate(touchedLayer.transform,0.1, 0.0 ,1.0 ,2.0)];

	// doing the wiggle
//	[touchedLayer addAnimation:wiggle forKey:@"wiggle"];

  3 Responses to “code for iphone wiggle”

  1. You need to participate in a contest for the most effective blogs on the web. I’ll recommend this web site!

  2. Oh my goodness! an amazing article dude. Thanks Nonetheless I am experiencing situation with ur rss . Don?t know why Unable to subscribe to it. Is there anybody getting similar rss downside? Anybody who is aware of kindly respond. Thnkx

  3. There are some attention-grabbing deadlines in this article but I don?t know if I see all of them heart to heart. There may be some validity but I will take hold opinion until I look into it further. Good article , thanks and we wish more! Added to FeedBurner as well

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 { joycodes blog } Suffusion theme by Sayontan Sinha