Discussion Forums  >  Self Hosted Control Panels

Replies: 7    Views: 112

TraceCampbellBSNRN
buzztouch Evangelist
Profile
Posts: 233
Reg: Dec 16, 2011
Forney
3,680
07/27/12 09:05 AM (13 years ago)

animation

is there a way to make animated icons in buzztouch? I would like a spinning record to show on my app.
 
coderx
Veteran developer
Profile
Posts: 433
Reg: Oct 29, 2011
Ontario, Canada
8,680
like
07/27/12 09:17 AM (13 years ago)
Just a suggestion, why not make the icon animated instead?
 
TraceCampbellBSNRN
buzztouch Evangelist
Profile
Posts: 233
Reg: Dec 16, 2011
Forney
3,680
like
07/27/12 10:43 AM (13 years ago)
how?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
07/27/12 12:59 PM (13 years ago)
This isn't the only place on the net! :) Google is your friend.
 
coderx
Veteran developer
Profile
Posts: 433
Reg: Oct 29, 2011
Ontario, Canada
8,680
like
07/27/12 01:28 PM (13 years ago)
Lets say you want your record to rotate around, tipped, to the side, etc. I assume about 5 images will do that. A code like this should do the trick. Good luck and happy coding:) -(void) viewDidLoad { imageView.animationImages = [NSArray arrayWithObjects: [UIImage imageNamed:@"myImageFrame1.gif"], [UIImage imageNamed:@"myImageFrame2.gif"], [UIImage imageNamed:@"myImageFrame3.gif"], [UIImage imageNamed:@"myImageFrame4.gif"], nil]; imageView.animationDuration = 2.0; imageView.animationRepeatCount = 0; [imageView startAnimating]; }
 
TraceCampbellBSNRN
buzztouch Evangelist
Profile
Posts: 233
Reg: Dec 16, 2011
Forney
3,680
like
07/27/12 05:31 PM (13 years ago)
coderx ty Ive seen this. but I still don't know enough about coding in xcode. Where does this code go? Ive made the 5 different images and saved them as png. My assumption is this code allows them to rotate and appear animated. but where do I put this code? And how does this code know where to place the animated image? where will it appear? I want it as a header but you can't have a header when you use the button menu. very frustrating.
 
TraceCampbellBSNRN
buzztouch Evangelist
Profile
Posts: 233
Reg: Dec 16, 2011
Forney
3,680
like
07/27/12 05:38 PM (13 years ago)
darn
 
Dragon007
Lost but trying
Profile
Posts: 1509
Reg: Dec 17, 2011
London
20,590
like
07/28/12 04:51 PM (13 years ago)
Hi Coderx Interested in your guide, I'm assuming this will work for splash screens? Which file does this code need to be added too?
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.