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

View Single Post
Old 06-18-2010, 06:07 AM   #1 (permalink)
zannn
Registered Member
 
Join Date: Jun 2010
Posts: 2
zannn is on a distinguished road
Default Multiple buttons trigger animations - pls help

Hello,

A little help please
I have 6 uibuttons that each trigger a different animation.
The problem is that the whole thing crashes if 2 buttons are pressed at the same time!
Ideally all the buttons should be disabled until the animation has finished running... I'm hoping for a simple fix here

Thanks in advance for any suggestions x

The animation code is like:
animationImageView.animationImages = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"actionhammer1.png"],[UIImage imageNamed:@"actionhammer2.png"],[UIImage imageNamed:@"actionhammer3.png"],nil];
animationImageView.animationDuration = 2.00;
animationImageView.animationRepeatCount = 1;
[animationImageView startAnimating];
[self.view addSubview:animationImageView];
zannn is offline   Reply With Quote
 

» Advertisements
» Online Users: 434
20 members and 414 guests
Absentia, apatsufas, brainspoon, comicool, Creativ, Davor, Domele, habitatus, iMax 3060, jbro, john love, JohnnyFlash, linkmx, matador1978, mistergreen2011, m_rozzi, NSString, revg, RickSDK
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,551
Threads: 94,078
Posts: 402,725
Top Poster: BrianSlick (7,990)
Welcome to our newest member, hongto24
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:17 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.