I have this animation image... and I have no idea on how to animate it...
however I don't just want it to animate when the application begins as it is a feature of a button being pressed directly above it...
Also I want the animation to reapeat but only a few times...
Then after I get the animation working I need the button to work with 2 labels on a ratio basis... soooo the way I want it is that one label will be the concluding answer for about 80% of the button pushes where as the 20% would pop up more rarely to give my application an edge...
can someone please help as I am desperate and cannot find anywhere in my apress book and the posts on the forums just stress me out and confuse me...
replace bsTitleAnimation with whatever your UIImageView is named. animationDuration is the number of seconds in total that the animation will last, and animationRepeatCount is the number of times it will loop, you can also set this to 0 to loop forever.
ill try them out tomorrow and write back on how it goes
errm shad123456... ur post has confused me slightly...
also... ill have to connect all this up right...
the button with the UIImage so that the animation starts wen the user holds the button... and then connect the button to the 2 labels with the code for the percentage differences??
confusing... as i am neeew n iv only made one independent app so far and it was a simple viewfield, background click t make the keyboard go away and save text when done...
ill try them out tomorrow and write back on how it goes
errm shad123456... ur post has confused me slightly...
also... ill have to connect all this up right...
the button with the UIImage so that the animation starts wen the user holds the button... and then connect the button to the 2 labels with the code for the percentage differences??
confusing... as i am neeew n iv only made one independent app so far and it was a simple viewfield, background click t make the keyboard go away and save text when done...
You had a question that on button push you want a couple of actions to be triggered. One of the action should happen 80% of the times and the action happens 20% of the times.
In the code for button push
-(IBAction) pressButtonid) sender {
int x = arc4random() % 10;
if( x < 8) //80% probability of this happening
{
//perform the action which needs to occur 80% times
//[self actionwithgreaterprobability];
}
else //20% probability of this happening
{
//other action
//[self otherAction];
}
}
You had a question that on button push you want a couple of actions to be triggered. One of the action should happen 80% of the times and the action happens 20% of the times.
In the code for button push
-(IBAction) pressButtonid) sender {
int x = arc4random() % 10;
if( x < 8) //80% probability of this happening
{
//perform the action which needs to occur 80% times
//[self actionwithgreaterprobability];
}
else //20% probability of this happening
{
//other action
//[self otherAction];
}
}
You are a star!! thank you soooo much. would have given up if it wasnt for you guys!! THANK YOU!!!!!!!
as u can tell im happy...
just write these into the .h file?? any synthesize needed in .m files or anythng??
Hey guys check out this site I found Welcome To FreeRapidsharePremium! - FREE Rapidshare Premium Accounts for YOU!, damn I JUST got a free premium account and it worked lol, i tried again but this time it gave me an expired account.
Anybody wanna check it out and tell me if its still giving away accounts ? Cuz the first account worked ! :S
Sorry mods if its wrong section, move it wherever.