59 lines
1.7 KiB
Objective-C
59 lines
1.7 KiB
Objective-C
//
|
|
// StartPZXZDetailViewController.m
|
|
// ProductApp
|
|
//
|
|
// Created by 工作 on 2024/9/24.
|
|
//
|
|
|
|
#import "StartPZXZDetailViewController.h"
|
|
#import "StartPZXZDetailView.h"
|
|
|
|
|
|
@interface StartPZXZDetailViewController ()
|
|
|
|
@end
|
|
|
|
@implementation StartPZXZDetailViewController
|
|
- (UIStatusBarStyle)preferredStatusBarStyle {
|
|
return UIStatusBarStyleDefault;
|
|
}
|
|
- (void)viewWillAppear:(BOOL)animated {
|
|
[super viewWillAppear:animated];
|
|
[self.navigationController setNavigationBarHidden:YES animated:animated];
|
|
[self showNaviGationView:YES];
|
|
[self.navigationView setTitle:@"改写成文" titleColor:RGBCOLOR(60, 60, 60)];
|
|
if(self.modelYD)
|
|
{
|
|
if([self.modelYD.scene isEqualToString:@"pic_rewrite"])
|
|
{
|
|
[self.navigationView setTitle:@"拍照改写" titleColor:RGBCOLOR(60, 60, 60)];
|
|
}
|
|
else if([self.modelYD.scene isEqualToString:@"pic_question"])
|
|
{
|
|
[self.navigationView setTitle:@"拍题写作" titleColor:RGBCOLOR(60, 60, 60)];
|
|
}
|
|
else if([self.modelYD.scene isEqualToString:@"pic_with_front"])
|
|
{
|
|
[self.navigationView setTitle:@"拍照续写" titleColor:RGBCOLOR(60, 60, 60)];
|
|
}
|
|
|
|
}
|
|
[self.navigationView setBackgroundColor:[UIColor whiteColor]];
|
|
[self.navigationView.backButton setHidden:YES];
|
|
}
|
|
- (void)viewDidLoad {
|
|
[super viewDidLoad];
|
|
[self.view setBackgroundColor:[UIColor whiteColor]];
|
|
|
|
StartPZXZDetailView *view = [[StartPZXZDetailView alloc] init];
|
|
[self.view addSubview:view];
|
|
[view mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
make.left.right.bottom.equalTo(self.view);
|
|
make.top.offset(NavHeight);
|
|
}];
|
|
view.modelYD = self.modelYD;
|
|
|
|
}
|
|
|
|
@end
|