ios - Black effect when screen popping controller with custom animation? -


i popping view controller navigation controller.when popping controller want give animation pushing view controller.for purpose using below code

    catransition* transition = [catransition animation];     transition.duration = 0.3f;     transition.type = kcatransitionpush;     transition.subtype = kcatransitionfromright;     [self.navigationcontroller.view.layer addanimation:transition                                                 forkey:kcatransition];      [self.appdelegate setupforlvc];     [self.navigationcontroller popviewcontrolleranimated:no]; 

when animation starts black effect here.please tell me issue code ?

add code in didfinishlaunchingwithoptions

self.window.backgroundcolor = [uicolor whitecolor]; self.window.tintcolor = [uicolor whitecolor];         **or** 2)set animation duration 0 

Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -