12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- //
- // ASIdeaViewController.m
- // ACSION
- //
- // Created by 小花 on 2019/4/23.
- // Copyright © 2019 acsion. All rights reserved.
- //
- #import "ASIdeaViewController.h"
- @interface ASIdeaViewController ()
- @property (nonatomic, strong) UITextField *textField;
- @property (nonatomic, strong) UIButton *commitBtn;
- @end
- @implementation ASIdeaViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- self.view.backgroundColor = [UIColor backgroundColor];
- [self configSubViews];
- self.title = @"意见反馈";
- }
- - (void)configSubViews {
- self.textField = [[UITextField alloc] initWithFrame:CGRectMake(10, 10, SCREEN_WIDTH-20, 200)];
- self.textField.textColor = [UIColor colorWithHexString:@"3E3E3E"];
- self.textField.backgroundColor = [UIColor whiteColor];
- self.textField.layer.cornerRadius = 6;
- self.textField.placeholder = @"请输入反馈信息...";
- self.textField.contentVerticalAlignment = UIControlContentVerticalAlignmentTop;
- [self.view addSubview:self.textField];
-
- self.commitBtn = [[UIButton alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT-kNavBarHeight-40-kSafeBottomHeight, SCREEN_WIDTH, 40)];
- self.commitBtn.backgroundColor = [UIColor whiteColor];
- [self.commitBtn setTitle:@"提交" forState:UIControlStateNormal];
- [self.commitBtn addTarget:self action:@selector(commitAction) forControlEvents:UIControlEventTouchUpInside];
- self.commitBtn.titleLabel.font = [UIFont systemFontOfSize:15];
- [self.commitBtn setTitleColor:[UIColor baseColor] forState:UIControlStateNormal];
- [self.view addSubview:self.commitBtn];
- }
- - (void)commitAction {
- [XHToast showCenterWithText:@"提交成功"];
- [self.navigationController popViewControllerAnimated:YES];
- }
- @end
|