Я пытаюсь создать собственный переход, но я не могу получить правильный переход. Переход, который я хотел бы, является противоположным переходом модального перехода с переходом по умолчанию. Итак, переход, который я хочу, - это то, где мой вид скользит вниз, чтобы показать новый вид. Мой код для моей пользовательской темы опубликован ниже.
@implementation customSegue
//still need to find the right transition (from top to bottom)
- (void) perform
{
UIViewController *src = (UIViewController *) self.sourceViewController;
UIViewController *dst = (UIViewController *) self.destinationViewController;
[UIView transitionWithView:src.navigationController.view duration:0.5
options:UIViewAnimationOptionTransitionCurlUp
animations:^{
[src.navigationController pushViewController:dst animated:NO];
}
completion:NULL];
}
@end