I want a blinking button. Actually my button look like this:
[redButton setImage:[UIImage imageNamed:@"Button1.png"] forState: UIControlStateNormal];
[redButton setImage:[UIImage imageNamed:@"ButtonPressed.png"] forState: UIControlStateHighlighted];
Now I want to change the Buttonpicture in the normal State every second from Button1.png to Button2.png and back to Button1.png and so on… How can I do this?
Thanks for your help and sorry for my bad English.
You can change the image by scheduling a NSTimer:
The following method changes the picture (you also need a bool instance variable to keep your toggle state)