Quelqu'un peut-il expliquer comment fonctionne UIView dans ce contexte? Est-ce juste une partie du contrôleur de vue (c'est-à-dire la vue qui fait partie de mon ViewController.xib). J'ai été intrigué pendant une seconde car il me semblait que j'aurais dû le déclarer quelque part, je voulais appeler beginAnimations mais je ne savais pas à quoi m'appeler.UIView, comment ça marche?
@implementation ViewController
@synthesize fadeText_001;
-(IBAction)pressToFade:(id)sender {
NSLog(@"pressFade ...");
UIButton *button = (UIButton *)sender;
[fadeText_001 setAlpha:1.0];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.5];
[fadeText_001 setAlpha:0.0];
[UIView commitAnimations];
}
Vive gary
Ah je vois, cela fait parfaitement sens, merci, très apprécié. – fuzzygoat