嗨,我有两个视图控制器之间的自定义转换,我想在转换时消除它们之间的黑色间隙。我能做些什么来做到这一点?谢谢!这是当前使用 CATransition 和间隙图片执行转换的方式。
- (void)bottomButtonScreen4:(UIGestureRecognizer *)gestureRecognizer {
NSLog(@"Swipe Up Worked");
settingsViewController = [[SettingsViewController alloc] init];
CATransition* transition = [CATransition animation];
transition.duration = 0.5;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionLinear];
transition.type = kCATransitionPush;
transition.subtype = kCATransitionFromTop;
[self.navigationController.view.layer addAnimation:transition forKey:nil];
settingsViewController = [self.storyboard instantiateViewControllerWithIdentifier: @"settingView"];
[self.navigationController pushViewController:settingsViewController animated:NO];
}