This code, on button tap, increments a count variable which is set to 0 at first. The more the user taps it, the corresponding label reflects the count.
I want to use an IBAction method that when on tap cycles through images. Ie one image and a button is shown unload and when the user taps the button a new image is shown in its place etc. Thanks.
- (IBAction)buttonPressed{
count++;
label.text = [NSString stringWithFormat:@"Score\n%i",count];
}
Aucun commentaire:
Enregistrer un commentaire