-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDetailController.m
49 lines (39 loc) · 1.18 KB
/
DetailController.m
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
43
44
45
46
47
48
49
//
// DetailController.m
// SmartITOM
//
// Created by Apple001 on 12-11-14.
// Copyright (c) 2012年 Ambrose. All rights reserved.
//
#import "DetailController.h"
@interface DetailController ()
@end
@implementation DetailController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
self.view.backgroundColor = [UIColor grayColor];
UIButton *thirdVCButton = [UIButton buttonWithType:UIButtonTypeCustom];
thirdVCButton.backgroundColor = [UIColor blackColor];
[thirdVCButton setTitle:@"下级视图" forState:0];
thirdVCButton.frame = CGRectMake(120, 120, 120, 120);
[thirdVCButton addTarget:self action:@selector(thirdVC) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:thirdVCButton];
}
#pragma mark -
#pragma mark - thirdVC
-(void)thirdVC
{
ThirdViewController *thirdVC = [[ThirdViewController alloc] init];
[self.navigationController pushViewController:thirdVC animated:YES];
}
@end