// // 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)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; NSLog(@"==="); } - (void)touchesBegan:(NSSet *)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