-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHTViewController.m
More file actions
35 lines (27 loc) · 806 Bytes
/
Copy pathHTViewController.m
File metadata and controls
35 lines (27 loc) · 806 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
33
34
35
//
// HTViewController.m
// HTLaunchTask
//
// Created by Jason on 2022/09/24.
//
#import "HTViewController.h"
@interface HTViewController ()
@end
@implementation HTViewController
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIButton *button = [[UIButton alloc] init];
[button setTitle:@"按钮" forState:UIControlStateNormal];
[button setTitleColor:UIColor.blackColor forState:UIControlStateNormal];
[button setTitleColor:UIColor.grayColor forState:UIControlStateHighlighted];
button.frame = CGRectMake(100, 100, 240, 120);
[self.view addSubview:button];
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end