5
मैं UIButton
को animationImages
और इसके एनिमेटिंग सफलतापूर्वक एनिमेट कर रहा हूं, लेकिन एनीमेशन पूर्ण होने के बाद UIButton
स्वचालित रूप से फीका हुआ है। मैं फीका से कैसे बच सकता हूं?एनीमेशन के साथ एनिमेट करें UIButton एनीमेशन पूर्णता एनीमेशन पूर्ण होने के बाद बटन स्थिति फीका
sender.imageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:[NSString stringWithFormat:@"main_bird_animation_01%@",ipadVar]],
[UIImage imageNamed:[NSString stringWithFormat:@"main_bird_animation_02%@",ipadVar]],
[UIImage imageNamed:[NSString stringWithFormat:@"main_bird_animation_03%@",ipadVar]],
nil];
sender.imageView.animationDuration = 1.f;
sender.imageView.animationRepeatCount = 4.f;
[sender.imageView startAnimating];
क्या यह एक आईबीएक्शन विधि के अंदर हो रहा है? – Rishab
हाँ यह आईबीएक्शन विधि –
के अंदर हो रहा है एनीमेशन पूर्ण होने के बाद, क्या आप छवि स्थिति को रीसेट करने का प्रयास कर सकते हैं? [इस] का संदर्भ लें (https://spin.atomicobject.com/2014/08/27/animate-images-uiimageview-completion-handler/) पूरा करने के लिए लिंक हैंडलर – NightFury