developer
2023-05-20 c1ffd99c4b60066774eb2c97b31e4aaa014e7f51
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
//  PublishGoodsViewController.m
//  BuWanVideo2.0
//
//  Created by apple on 17/1/4.
//  Copyright © 2017年 com.yeshi.buwansheque.ios. All rights reserved.
//
 
#import "PublishGoodsViewController.h"
#import "ConfirmTheGoodsViewController.h"
 
@interface PublishGoodsViewController ()
 
@end
 
@implementation PublishGoodsViewController
 
- (void)viewDidLoad {
    [super viewDidLoad];
    //返回按钮
    UIButton *backButton=[UIButton buttonWithType:UIButtonTypeRoundedRect];
    backButton.frame=CGRectMake(0, 0, 50, 44);
    [backButton setTitle:@"<返回" forState:UIControlStateNormal];
    [backButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    backButton.titleLabel.font = [UIFont systemFontOfSize:17.0];
    [backButton addTarget:self action:@selector(BackClick:) forControlEvents:UIControlEventTouchUpInside];
    UIBarButtonItem *backBtnItem=[[UIBarButtonItem alloc] initWithCustomView:backButton];
    self.navigationItem.leftBarButtonItem=backBtnItem;
    
    //标题
    UILabel *TLabel=[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 50, 44)];
    TLabel.text=@"发布";
    TLabel.textColor=[UIColor whiteColor];
    TLabel.font=[UIFont systemFontOfSize:18];
    self.navigationItem.titleView=TLabel;
    
    _image1H.constant=(KScreenW-60)/45*22;
    _image2H.constant=(KScreenW-60)/45*24;
}
 
-(void)BackClick:(UIButton *)sender{
    [self.navigationController popViewControllerAnimated:NO];
}
- (IBAction)GetProductInformation:(UIButton *)sender {
    ConfirmTheGoodsViewController *ConfirmTheGoodsVC=[[ConfirmTheGoodsViewController alloc] init];
    [self.navigationController pushViewController:ConfirmTheGoodsVC animated:YES];
}
 
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
 
@end