Re: [iPhone] customizing UIView animation run background color
Re: [iPhone] customizing UIView animation run background color
- Subject: Re: [iPhone] customizing UIView animation run background color
- From: Tharindu Madushanka <email@hidden>
- Date: Wed, 18 Nov 2009 05:35:52 +0530
This is the method I use to switch views. And my views are created with
Interface Builder
- (IBAction)switchViews {
self.view.backgroundColor = [UIColor blackColor];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.25];
[UIView setAnimationCurve:
UIAnimationCurveEaseInOut];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft
forView:self.view cache:YES];
[self.view exchangeSubviewAtIndex:1 withSubviewAtIndex:2];
[UIView commitAnimations];
}
I cannot guess why its white bacground when animation runs :( Could any one
guess why is it ?
Thank you.
-Tharindu
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden