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
Post a Comment