@@ -97,13 +97,21 @@ - (UIView *)customHeaderView{
97
97
- (UIView *)customFooterView {
98
98
UIView *footerV = [[UIView alloc ] initWithFrame: CGRectMake (0 , 0 , kScreen_Width , 150 )];
99
99
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
+ });
105
111
[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
+ }];
107
115
if (_stepIndex == 0 ) {
108
116
RAC (self, footerBtn.enabled ) = [RACSignal combineLatest: @[RACObserve (self , userStr)]
109
117
reduce: ^id (NSString *userStr){
0 commit comments