|
@@ -168,15 +168,21 @@
|
|
_tipsLab.numberOfLines = 0;
|
|
_tipsLab.numberOfLines = 0;
|
|
_tipsLab.userInteractionEnabled = YES;
|
|
_tipsLab.userInteractionEnabled = YES;
|
|
_tipsLab.frame = CGRectMake(20, CGRectGetMaxY(self.writeBtn.frame), KScreenWidth - 40, 45);
|
|
_tipsLab.frame = CGRectMake(20, CGRectGetMaxY(self.writeBtn.frame), KScreenWidth - 40, 45);
|
|
- NSString *string = @"Only Registered Users Can Write Reviews. Please,Log In Or Register";
|
|
|
|
|
|
+ NSString *string = @"Only Registered Users Can Write Reviews. Please,Log In Or Register ";
|
|
NSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc] initWithString:string];
|
|
NSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc] initWithString:string];
|
|
- NSMutableArray *arr_text = [[NSMutableArray alloc]initWithObjects:@"Log In Or Register" ,nil];
|
|
|
|
|
|
+ NSMutableArray *arr_text = [[NSMutableArray alloc]initWithObjects:@"Log In", @"Register ", nil];
|
|
attrStr = [self textArr:arr_text AttributedString:attrStr Connet:string];
|
|
attrStr = [self textArr:arr_text AttributedString:attrStr Connet:string];
|
|
- NSMutableArray * arr_range = [[NSMutableArray alloc]initWithObjects:@"48", nil];//点击的文字开始位置设置
|
|
|
|
|
|
+ NSMutableArray * arr_range = [[NSMutableArray alloc]initWithObjects:@"48", @"58", nil];//点击的文字开始位置设置
|
|
[_tipsLab setAttributesText:attrStr actionText:arr_text actionRange:arr_range];//d添加到UILabel上面
|
|
[_tipsLab setAttributesText:attrStr actionText:arr_text actionRange:arr_range];//d添加到UILabel上面
|
|
_tipsLab.YJLAttributesBlock = ^(NSString * _Nonnull clicktext) {//点击事件的d返回
|
|
_tipsLab.YJLAttributesBlock = ^(NSString * _Nonnull clicktext) {//点击事件的d返回
|
|
- if([clicktext isEqualToString:@"Log In Or Register"]){
|
|
|
|
|
|
+ if([clicktext isEqualToString:@"Log In"]){
|
|
[Fuction_Tool pop_toLoginVC];
|
|
[Fuction_Tool pop_toLoginVC];
|
|
|
|
+ } else if ([clicktext isEqualToString:@"Register "]) {
|
|
|
|
+ AS_SignUpC *signUpVC = [[AS_SignUpC alloc] init];
|
|
|
|
+ signUpVC.isPresent = YES;
|
|
|
|
+ QMUINavigationController *uikitNavController = [[QMUINavigationController alloc] initWithRootViewController:signUpVC];
|
|
|
|
+ uikitNavController.modalPresentationStyle = UIModalPresentationFullScreen;
|
|
|
|
+ [[Current_normalTool topViewController] presentViewController:uikitNavController animated:YES completion:nil];
|
|
}
|
|
}
|
|
};
|
|
};
|
|
_tipsLab.font = [UIFont fontWithName:Rob_Regular size:12];
|
|
_tipsLab.font = [UIFont fontWithName:Rob_Regular size:12];
|