fix
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#import "GiGaNetManager.h"
|
||||
#import "MBProgressHUD.h"
|
||||
#import "GiGaAttributedLabel.h"
|
||||
#import "UINavigationBar+Custom.h"
|
||||
|
||||
@interface GiGaRegistViewController ()<TTTAttributedLabelDelegate>
|
||||
@property (weak, nonatomic) IBOutlet UITextField *phoneNumberTextField;
|
||||
@@ -42,14 +43,32 @@
|
||||
[self.sendCodeBtn addTarget:self action:@selector(sendCodeBtnAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
[self.registBtn addTarget:self action:@selector(registBtnAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
[self.checkBtn addTarget:self action:@selector(checkBtnAction:) forControlEvents:UIControlEventTouchUpInside];
|
||||
|
||||
|
||||
[self resetBackimg];
|
||||
}
|
||||
|
||||
-(void)resetBackimg{
|
||||
UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
backBtn.frame = CGRectMake(0, 0, 40, 40);
|
||||
[backBtn setImage:[UIImage imageNamed:@"nav_redback"] forState:UIControlStateNormal];
|
||||
[backBtn setImageEdgeInsets:UIEdgeInsetsMake(0,-14, 0, 14)];
|
||||
//backBtn.backgroundColor = [UIColor redColor];
|
||||
[backBtn addTarget:self action:@selector(backItemAction) forControlEvents:UIControlEventTouchUpInside];
|
||||
UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithCustomView:backBtn];
|
||||
self.navigationItem.leftBarButtonItem = backItem;
|
||||
}
|
||||
-(void)backItemAction{
|
||||
|
||||
[self.navigationController popViewControllerAnimated:YES];
|
||||
}
|
||||
-(void)viewDidAppear:(BOOL)animated{
|
||||
[super viewDidAppear:animated];
|
||||
}
|
||||
-(void)viewWillAppear:(BOOL)animated{
|
||||
[super viewWillAppear:animated];
|
||||
[self.navigationController.navigationBar setClearNav];
|
||||
|
||||
}
|
||||
|
||||
-(void)dealloc{
|
||||
if (_timer) {
|
||||
[_timer unfireTimer];
|
||||
@@ -114,8 +133,8 @@
|
||||
|
||||
-(void)confirmUI{
|
||||
|
||||
self.useragreementLabel.highlightedTextColor = [UIColor lightGrayColor];
|
||||
self.useragreementLabel.textColor = GIGAUIColorFromRGBA(0x919191);
|
||||
self.useragreementLabel.highlightedTextColor = GIGARGB(219, 23, 37, 1);
|
||||
self.useragreementLabel.textColor = GIGARGB(145,145,145, 1);
|
||||
self.useragreementLabel.delegate = self;
|
||||
self.useragreementLabel.enabledTextCheckingTypes= NSTextCheckingTypePhoneNumber|NSTextCheckingTypeAddress|NSTextCheckingTypeLink;
|
||||
self.useragreementLabel.linkAttributes = [NSDictionary dictionaryWithObject:[NSNumber numberWithBool:NO] forKey:(NSString *)kCTUnderlineStyleAttributeName];
|
||||
@@ -130,7 +149,7 @@
|
||||
|
||||
[mutableAttributedString addAttribute:(NSString *)kCTFontAttributeName value:(__bridge id)font range:fontRange];
|
||||
|
||||
[mutableAttributedString addAttribute:(NSString *)kCTForegroundColorAttributeName value:(__bridge id)[[UIColor colorWithRed:0/255.0 green:222/255.0 blue:189/255.0 alpha:1/1.0] CGColor] range:fontRange];
|
||||
[mutableAttributedString addAttribute:(NSString *)kCTForegroundColorAttributeName value:(__bridge id)[GIGARGB(219, 23, 37, 1) CGColor] range:fontRange];
|
||||
}
|
||||
return mutableAttributedString;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user