Files
featherVoice/QXLive/Mine(音域)/Controller/设置/QXChirldModeViewController.m
2025-08-08 10:49:36 +08:00

57 lines
1.6 KiB
Objective-C

//
// 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