mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-06 04:32:06 +00:00
32 lines
707 B
Objective-C
32 lines
707 B
Objective-C
//
|
|
// PresentingViewController.m
|
|
// Sample
|
|
//
|
|
// Created by Tom King on 12/23/15.
|
|
// Copyright © 2015 Facebook. All rights reserved.
|
|
//
|
|
|
|
#import "PresentingViewController.h"
|
|
#import "ViewController.h"
|
|
|
|
@interface PresentingViewController ()
|
|
|
|
@end
|
|
|
|
@implementation PresentingViewController
|
|
|
|
- (void)viewDidLoad
|
|
{
|
|
[super viewDidLoad];
|
|
|
|
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Push Details" style:UIBarButtonItemStylePlain target:self action:@selector(pushNewViewController)];
|
|
}
|
|
|
|
- (void)pushNewViewController
|
|
{
|
|
ViewController *controller = [[ViewController alloc] init];
|
|
[self.navigationController pushViewController:controller animated:true];
|
|
}
|
|
|
|
@end
|