co-maps/iphone/Maps/Classes/MWMSegue.m
2025-11-22 13:58:55 +01:00

17 lines
429 B
Objective-C

#import "MWMSegue.h"
@implementation MWMSegue
+ (void)segueFrom:(UIViewController *)source to:(UIViewController *)destination
{
[[[self alloc] initWithIdentifier:@"" source:source destination:destination] perform];
}
- (void)perform
{
UINavigationController * nc = self.sourceViewController.navigationController;
UIViewController * dvc = self.destinationViewController;
[nc showViewController:dvc sender:nil];
}
@end