57 lines
1.6 KiB
Mathematica
57 lines
1.6 KiB
Mathematica
|
|
//
|
||
|
|
// QXChirldModeViewController.m
|
||
|
|
// QXLive
|
||
|
|
//
|
||
|
|
// Created by 启星 on 2025/5/12.
|
||
|
|
//
|
||
|
|
|
||
|
|
#import "QXChirldModeViewController.h"
|
||
|
|
#import "QXPasswordView.h"
|
||
|
|
@interface QXChirldModeViewController ()<QXPasswordViewDelegate>
|
||
|
|
@property (nonatomic,strong)QXPasswordView * passwordView;
|
||
|
|
@end
|
||
|
|
|
||
|
|
@implementation QXChirldModeViewController
|
||
|
|
|
||
|
|
- (void)viewDidLoad {
|
||
|
|
[super viewDidLoad];
|
||
|
|
// Do any additional setup after loading the view.
|
||
|
|
}
|
||
|
|
-(void)viewWillAppear:(BOOL)animated{
|
||
|
|
[super viewWillAppear:animated];
|
||
|
|
[self.navigationController setNavigationBarHidden:NO animated:YES];
|
||
|
|
}
|
||
|
|
-(void)setNavgationItems{
|
||
|
|
[super setNavgationItems];
|
||
|
|
self.navigationItem.title = QXText(@"未成年人模式");
|
||
|
|
}
|
||
|
|
-(void)initSubViews{
|
||
|
|
self.passwordView = [[QXPasswordView alloc] init];
|
||
|
|
self.passwordView.type = QXPasswordViewTypeChirldMode;
|
||
|
|
self.passwordView.delegate = self;
|
||
|
|
[self.view addSubview:self.passwordView];
|
||
|
|
[self.passwordView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||
|
|
make.top.mas_equalTo(NavContentHeight+80);
|
||
|
|
make.height.mas_equalTo(190);
|
||
|
|
make.left.right.equalTo(self.view);
|
||
|
|
}];
|
||
|
|
}
|
||
|
|
|
||
|
|
-(void)inputFinished:(NSString *)password{
|
||
|
|
|
||
|
|
}
|
||
|
|
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
|
||
|
|
[self.view endEditing:YES];
|
||
|
|
}
|
||
|
|
/*
|
||
|
|
#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
|