Can someone just clarify how UIView works in this context? Is it just part of the view controller (i.e. the view that is part of my ViewController.xib). I was puzzled for a second as it felt like I should have been declaring it somewhere, I wanted to call beginAnimations but was not sure what to call it on.
@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];
}
Cheers gary