Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 08-30-2010, 06:55 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2010
Posts: 1
siva_2152 is on a distinguished road
Question Animating the UIButton Layer

Hi Im trying to bring the ripple effect seen in the dashboard application to iphone. My idea is whenever i place a button in the layout view there should be ripple effect around the button. however Im able to bring the ripple effect for the whole view but I needs the effect only around the button. I tried the following code. I don know where i went wrong. Can someone help me. Below is the code I used

LayoutButton *tempLayoutButton=[LayoutButton alloc] initWithObjectbject;
tempLayoutButton.center=copyImage.center;
layoutView addSubview:tempLayoutButton;
CALayer *templayer=CALayer layer;
tempLayoutButton.layer.masksToBounds=NO;
tempLayoutButton.layer addSublayer:templayer;
templayer.frame=CGRectMake(0,0,50,50);
CATransition *animation = CATransition animation;
animation.delegate = self;
animation.duration = 1.0f;
animation.timingFunction = UIViewAnimationCurveEaseInOut;
animation.type = @"rippleEffect";
templayer addAnimation:animation forKey:@"animation";

If i replace templayer with LayoutView layer I can see the riple effect fro the whole view. Can anyone tell me the solution

Thanks in advance
siva_2152 is offline   Reply With Quote
Reply

Bookmarks

Tags
animation, button, layer, rippleeffect, transition

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 356
6 members and 350 guests
dre, freewind, hain, HemiMG, lendo, Newbie123
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,894
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:00 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0