Files
keyboard/keyBoard/Class/Home/VC/HomeVC.m

53 lines
1.5 KiB
Mathematica
Raw Normal View History

2025-10-29 14:17:26 +08:00
//
// HomeVC.m
// keyBoard
//
// Created by Mac on 2025/10/29.
//
#import "HomeVC.h"
2025-10-29 16:26:57 +08:00
#import "KBGuideVC.h"
2025-10-29 14:17:26 +08:00
@interface HomeVC ()
2025-10-30 13:10:33 +08:00
@property (nonatomic, strong) UITextView *textView;
2025-10-29 14:17:26 +08:00
@end
@implementation HomeVC
- (void)viewDidLoad {
[super viewDidLoad];
2025-10-29 14:28:57 +08:00
self.view.backgroundColor = [UIColor whiteColor];
2025-10-30 13:10:33 +08:00
CGRect frame = CGRectMake(([UIScreen mainScreen].bounds.size.width - 200)/2, 150, 200, 200);
self.textView = [[UITextView alloc] initWithFrame:frame];
self.textView.text = @"测试";
self.textView.layer.borderColor = [UIColor blackColor].CGColor;
self.textView.layer.borderWidth = 0.5;
[self.view addSubview:self.textView];
[self.textView becomeFirstResponder];
2025-10-29 20:57:45 +08:00
2025-10-30 13:10:33 +08:00
[[KBNetworkManager shared] GET:@"app/config" parameters:nil headers:nil completion:^(id _Nullable jsonOrData, NSURLResponse * _Nullable response, NSError * _Nullable error) {
2025-10-29 20:57:45 +08:00
NSLog(@"====");
}];
2025-10-29 14:17:26 +08:00
}
2025-10-29 16:26:57 +08:00
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
2025-10-29 19:13:35 +08:00
// KBGuideVC *vc = [[KBGuideVC alloc] init];
// [self.navigationController pushViewController:vc animated:true];
// [KBHUD showInfo:@"加载中..."];
2025-11-03 13:25:41 +08:00
// [KBHUD show];
// [KBHUD showAllowTapToDismiss:true];
2025-10-29 16:26:57 +08:00
}
2025-10-29 14:17:26 +08:00
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end