//
//  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