तो, मैं 7.परत स्थिति की (कोर) एनीमेशन शुरू में कूदता
अब तक मैं है निम्नलिखित कोड है, लेकिन मैं के एक जोड़े है, एक टाइल flipping प्रभाव पैदा करने के लिए कोशिश कर रहा हूँ विंडोज फोन पर की तरह प्रश्नों।
CALayer *layer = self.theRedSquare.layer;
CATransform3D initialTransform = self.theRedSquare.layer.transform;
initialTransform.m34 = 1.0/-1000;
[UIView beginAnimations:@"Scale" context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationCurve: UIViewAnimationCurveEaseInOut];
layer.transform = initialTransform;
layer.anchorPoint = CGPointMake(-0.3, 0.5);
CATransform3D rotationAndPerspectiveTransform = self.theRedSquare.layer.transform;
rotationAndPerspectiveTransform = CATransform3DRotate(rotationAndPerspectiveTransform, M_PI , 0 , -self.theRedSquare.bounds.size.height/2, 0);
layer.transform = rotationAndPerspectiveTransform;
[UIView setAnimationDelegate:self];
[UIView commitAnimations];
1. कैसे मेरी मेरी लाल चौक (एक सरल यूआई देखें) आ एनीमेशन के शुरू में सही करने के लिए अनुवाद?
2. एंकर पॉइंट के लिए पैरेंट व्यू पर स्थिति निर्धारित करना संभव है? फिलहाल मैं मनमाने ढंग से वर्तमान दृश्य के सापेक्ष इसे स्थापित कर रहा हूं।
किसी भी पॉइंटर्स के लिए अग्रिम धन्यवाद।
एनीमेशन
एनीमेशन के दौरान इससे पहले कि (वर्ग नोटिस सही हो गया है)
एनीमेशन के बाद (नोटिस वर्ग सही हो गया है)
वीडियो कहा: example video
शानदार, धन्यवाद! – JonB
एनीमेशन को केवल एनिमेट करने के लिए आप कैसे प्राप्त करते हैं? (उस फ्लिप में) मैं इसे समझने के लिए घंटों तक कोशिश कर रहा हूं। – Frankrockz