-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFirstViewController.m
More file actions
42 lines (31 loc) · 1.1 KB
/
FirstViewController.m
File metadata and controls
42 lines (31 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// ViewController.m
// QYNavBackButton
//
// Created by qianye on 16/5/4.
// Copyright © 2016年 qianye. All rights reserved.
//
#import "FirstViewController.h"
#import "SecendViewController.h"
@interface FirstViewController ()
@end
@implementation FirstViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
// UIBarButtonItem *backBtn = [[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil];
// self.navigationItem.backBarButtonItem = backBtn;
}
- (void)popAction:(UIButton *)sender {
NSLog(@"come here");
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
- (IBAction)pushAction:(id)sender {
UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"Main" bundle:[NSBundle mainBundle]];
SecendViewController *secendVC = [mainStoryboard instantiateViewControllerWithIdentifier:@"SecendVC"];
[self.navigationController pushViewController:secendVC animated:YES];
}
@end