53 lines
1.5 KiB
Objective-C
53 lines
1.5 KiB
Objective-C
//
|
|
// HomeVC.m
|
|
// keyBoard
|
|
//
|
|
// Created by Mac on 2025/10/29.
|
|
//
|
|
|
|
#import "HomeVC.h"
|
|
#import "KBGuideVC.h"
|
|
|
|
@interface HomeVC ()
|
|
@property (nonatomic, strong) UITextView *textView;
|
|
|
|
@end
|
|
|
|
@implementation HomeVC
|
|
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
self.view.backgroundColor = [UIColor whiteColor];
|
|
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];
|
|
|
|
[[KBNetworkManager shared] GET:@"app/config" parameters:nil headers:nil completion:^(id _Nullable jsonOrData, NSURLResponse * _Nullable response, NSError * _Nullable error) {
|
|
NSLog(@"====");
|
|
}];
|
|
}
|
|
|
|
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
|
|
// KBGuideVC *vc = [[KBGuideVC alloc] init];
|
|
// [self.navigationController pushViewController:vc animated:true];
|
|
// [KBHUD showInfo:@"加载中..."];
|
|
[KBHUD show];
|
|
[KBHUD showAllowTapToDismiss:true];
|
|
}
|
|
|
|
/*
|
|
#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
|