अपने iPhone इंटरफ़ेस घूमता है, मैं एक UIViewController ... की तरह की एक विशिष्ट UIView के लिए एक फीका-इन/फीका-बाहर करना चाहते हैं जब ...फीका-इन/फीका-बाहर एक अंतरफलक रोटेशन के दौरान
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.3];
theView.alpha = 0;
[UIView commitAnimations];
}
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.3];
theView.alpha = 1;
[UIView commitAnimations];
}
लेकिन एनीमेशन रोटेशन शुरू होने से पहले खत्म नहीं करता है (हम दृश्य स्वयं आकार बदलने शुरू देख सकते हैं) ...
वहाँ रोटेशन शुरू देरी करने के लिए एक तरीका है?
"अवधि" घूर्णन एनीमेशन की अवधि है, है ना?
हाय, आपने अपनी समस्या का समाधान कैसे किया? – sergiobuj
मैंने इसे हल नहीं किया। मैं बस एनीमेशन अवधि 0.1s सेट –