-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathViewController.m
More file actions
32 lines (25 loc) · 857 Bytes
/
ViewController.m
File metadata and controls
32 lines (25 loc) · 857 Bytes
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
//
// ViewController.m
// KAppDelegateModule
//
// Created by DXM on 2023/4/19.
//
#import "ViewController.h"
#import "CTMediator+ModuleAActions.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
button.backgroundColor = [UIColor redColor];
button.frame = CGRectMake(100, 100, 100, 40);
[self.view addSubview:button];
[button addTarget:self action:@selector(buttonPressed) forControlEvents:UIControlEventTouchUpInside];
}
- (void)buttonPressed {
UIViewController *viewController = [[CTMediator sharedInstance] CTMediator_viewControllerForModuleA];
[self.navigationController pushViewController:viewController animated:YES];
}
@end