Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 55c1f20

Browse files
【企业版】找回密码:底部圆圈按钮,切换至与登录页面相同的风格
1 parent a623ad7 commit 55c1f20

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

‎Coding_iOS/Controllers/Login/CannotLoginViewController.m

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,21 @@ - (UIView *)customHeaderView{
9797
- (UIView *)customFooterView{
9898
UIView *footerV = [[UIView alloc] initWithFrame:CGRectMake(0, 0, kScreen_Width, 150)];
9999

100-
_footerBtn = [[UIButton alloc] initWithFrame:CGRectMake(kScreen_Width - 44 - 20, 25, 44, 44)];
101-
[_footerBtn addTarget:self action:@selector(footerBtnClicked:) forControlEvents:UIControlEventTouchUpInside];
102-
[_footerBtn setImage:[UIImage imageNamed:@"btn_next_enable"] forState:UIControlStateNormal];
103-
[_footerBtn setImage:[UIImage imageNamed:@"btn_next_unable"] forState:UIControlStateDisabled];
104-
100+
_footerBtn = ({
101+
UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(kLoginPaddingLeftWidth, 25, kScreen_Width-kLoginPaddingLeftWidth*2, 50)];
102+
button.backgroundColor = kColorDark4;
103+
button.titleLabel.font = [UIFont systemFontOfSize:17 weight:UIFontWeightMedium];
104+
[button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
105+
[button setTitle:[self footerBtnTitle] forState:UIControlStateNormal];
106+
button.layer.masksToBounds = YES;
107+
button.layer.cornerRadius = 2.0;
108+
[button addTarget:self action:@selector(footerBtnClicked:) forControlEvents:UIControlEventTouchUpInside];
109+
button;
110+
});
105111
[footerV addSubview:_footerBtn];
106-
112+
[RACObserve(self, footerBtn.enabled) subscribeNext:^(NSNumber *x) {
113+
[self.footerBtn setTitleColor:[UIColor colorWithWhite:1.0 alpha:x.boolValue? 1.0: .5] forState:UIControlStateNormal];
114+
}];
107115
if (_stepIndex == 0) {
108116
RAC(self, footerBtn.enabled) = [RACSignal combineLatest:@[RACObserve(self, userStr)]
109117
reduce:^id(NSString *userStr){

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /