2016-09-20 12 views
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]; 
+0

क्या यह एक आईबीएक्शन विधि के अंदर हो रहा है? – Rishab

+0

हाँ यह आईबीएक्शन विधि –

+0

के अंदर हो रहा है एनीमेशन पूर्ण होने के बाद, क्या आप छवि स्थिति को रीसेट करने का प्रयास कर सकते हैं? [इस] का संदर्भ लें (https://spin.atomicobject.com/2014/08/27/animate-images-uiimageview-completion-handler/) पूरा करने के लिए लिंक हैंडलर – NightFury

उत्तर

1

मैं समाधान हो गया है, वास्तव में देखते हैं एक संपत्ति UIButton बुलाया Disabled Adjust Image साथ जुड़ा है, मैं सिर्फ सही का निशान हटाएँ और यह चाल किया था।

enter image description here

संबंधित मुद्दे