こんにちは、src ビュー コントローラーを右にスライドさせて、その背後にある目的のビュー コントローラーを表示するカスタム モーダル セグエを作成しようとしています。どうすればそれを達成できるかについてのアイデア
これまでのところ私はこれを試しましたが、うまくいきません。
#import "CustomMenuSegue.h"
@implementation CustomMenuSegue
- (void) perform {
UIViewController *src = (UIViewController *) self.sourceViewController;
UIViewController *dst = (UIViewController *) self.destinationViewController;
[UIView transitionWithView:src.navigationController.view duration:0.2 options:UIUserInterfaceLayoutDirectionRightToLeft
animations:^{
[src.navigationController modalTransitionStyle:dst animated:YES];
}
completion:NULL];
}
@end