diff options
Diffstat (limited to 'example/ios/iOS UI Test/iOS UI Test/MasterViewController.m')
-rw-r--r-- | example/ios/iOS UI Test/iOS UI Test/MasterViewController.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test/MasterViewController.m b/example/ios/iOS UI Test/iOS UI Test/MasterViewController.m index c244f611..0e4c848b 100644 --- a/example/ios/iOS UI Test/iOS UI Test/MasterViewController.m +++ b/example/ios/iOS UI Test/iOS UI Test/MasterViewController.m @@ -7,9 +7,9 @@ // #import "MasterViewController.h" -#import "DetailViewController.h" #import <MailCore/MailCore.h> #import "FXKeychain.h" +#import "MCTMsgViewController.h" @interface MasterViewController () @property (nonatomic, strong) NSArray *messages; @@ -123,12 +123,12 @@ } } -- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { - if ([[segue identifier] isEqualToString:@"showDetail"]) { - NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow]; - NSDate *object = self.messages[indexPath.row]; - [[segue destinationViewController] setDetailItem:object]; - } +- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { + MCOIMAPMessage *msg = self.messages[indexPath.row]; + MCTMsgViewController *vc = [[MCTMsgViewController alloc] init]; + vc.message = msg; + vc.session = self.imapSession; + [self.navigationController pushViewController:vc animated:YES]; } @end |