मैं एनीमेशन को लागू करने का प्रयास करता हूं: जब आप आईफोन गैलरी में प्रवेश करते हैं, तो छवि दबाएं, आपको पूर्ण-स्क्रीन छवि दिखाई देती है। नीचे आप कचरा बटन के साथ टूलबार देख सकते हैं। जब आप इस बटन को दबाते हैं, तो छवि एनीमेशन के साथ हटा दी जा रही है। मैं इसे लागू करने का प्रयास करता हूं, लेकिन मुझे नहीं पता कि छवि, सेब के उपयोग को कैसे कार्यान्वित किया जाए। यह सबसे अच्छा है, मैं कर सकता है:एनीमेशन, जैसे कि जब आप आईफोन फोटो गैलरी से हटाते हैं
[UIView transitionWithView:self.view duration:0.1 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{
[self.view addSubview:scrollImageView];
} completion:^(BOOL finished) {
[UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionAllowUserInteraction animations:^{
CGRect frame = scrollImageView.frame;
frame.size = CGSizeMake(frame.size.width * 0.75, frame.size.height * 0.75);
frame.origin = CGPointMake((size.width - frame.size.width)/2, (size.height - frame.size.height)/2);
scrollImageView.frame = frame;
} completion:^(BOOL finished) {
[UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionAllowUserInteraction animations:^{
CGRect frame = scrollImageView.frame;
frame.size = CGSizeMake(frame.size.width * 0.05, frame.size.height * 0.05);
frame.origin = CGPointMake(size.width, size.height);
scrollImageView.frame = frame;
CGAffineTransform transform = scrollImageView.transform;
CGAffineTransform rotatedTransform = CGAffineTransformRotate(transform, 45 * 3.14/180);
scrollImageView.transform = rotatedTransform;
} completion:^(BOOL finished) {
[scrollImageView removeFromSuperview];
}];
}];
}];
अग्रिम धन्यवाद।
अद्यतन मैं समझता हूँ के रूप में, मैं कोर-एनीमेशन के साथ इस एनीमेशन ऐसा नहीं कर सकते, लेकिन किसी को मुझे एनीमेशन iPhone गैलरी एनीमेशन के लिए सबसे simular, लेकिन ओपन का उपयोग किए बिना सलाह कर सकते हैं कर सकते हैं?
तुम मुझे एनीमेशन iPhone गैलरी एनीमेशन के लिए सबसे simular सलाह कर सकते हैं, लेकिन ओपन का उपयोग किए बिना? –
मैंने पहले एक [ब्लॉग पोस्ट] किया था (http://ronnqvist.tumblr.com/post/23234805389/unobtrusive-hints-of-joy) सफारी से "पृष्ठभूमि में खोलें" एनीमेशन को दोहराने की कोशिश कर रहा है। यह काफी समान है लेकिन साथ ही बहुत अलग है। आप शायद इससे कुछ सीख सकते हैं और अपनी एनीमेशन के लिए आवश्यक भागों को अनुकूलित कर सकते हैं। –