AssessmentQualifiedViewController.m 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
//
//  AssessmentQualifiedViewController.m
//  Lighting
//
//  Created by 曹云霄 on 2016/12/6.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "AssessmentQualifiedViewController.h"

@interface AssessmentQualifiedViewController ()

@end

@implementation AssessmentQualifiedViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc]initWithString:[NSString stringWithFormat:@"您的得分为 %@",self.allScore]];
    NSRange range = NSMakeRange(attributedString.length-[self.allScore length], [self.allScore length]);    [attributedString addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:range];
    [attributedString addAttribute:NSFontAttributeName value:[UIFont fontWithName:@"HelveticaNeue-Bold" size:25] range:range];
    self.scoreLabel.attributedText = attributedString;
    self.integralLabel.text = [NSString stringWithFormat:@"%@",self.intrgral];
}

#pragma mark - 返回
- (IBAction)backButtonClickAction:(UIButton *)sender {
    
    if ([self.delegate respondsToSelector:@selector(backClickAction)]) {
        [self.delegate backClickAction];
    }
}

@end