objective c - iOS Dismiss and Present view controller custom animation -
i have view controller presenting following objective c code: catransition *animation=[catransition animation]; animation.delegate=self; animation.duration=0.3; animation.type=kcatransitionmovein; animation.subtype=kcatransitionfromright; [self presentviewcontroller:reader animated:no completion:nil]; [reader.view.layer addanimation:animation forkey:@"animation"]; and dismissing similar code inside delegate method catransition *animation=[catransition animation]; animation.delegate=self; animation.duration=0.3; animation.type=kcatransitionmovein; animation.subtype=kcatransitionfromleft; [self dismissviewcontrolleranimated:no completion:nil]; [self.view.layer addanimation:animation forkey:@"animation"]; however there 1 problem: unlike using navigation controller see 1 view slide onto other view; here old view disappears instantly new view moves onto blank view. how fix problem? need code work in ios 6,7 , 8 , horizontal animation see when going , fort...