// // JXExamViewController.h // shiku_im // // Created by qiudezheng on 2020/4/29. // Copyright © 2020 Reese. All rights reserved. // #import "JXTableViewController.h" NS_ASSUME_NONNULL_BEGIN @interface JXExamViewController : JXTableViewController @property(strong,nonatomic)NSString * ifAnswer; @end NS_ASSUME_NONNULL_END /** if(currentAnswerID.intValue == lastAnswer.intValue) { NSString * ifRight = [NSString stringWithFormat:@"%@",[dictionary objectForKey:@"right"]]; if(ifRight.boolValue) { if (indexPath.row==[lastAnswer integerValue]-1) { cell.greenGouIMG.alpha=1.0f; cell.redGouIMG.alpha=0.0f; cell.correctImage.alpha = 1.0f; cell.wrongImage.alpha = 0.0f; } NSLog(@"xx%@",@"correctImage"); } else { if (indexPath.row==[lastAnswer integerValue]-1) { cell.greenGouIMG.alpha=0.0f; cell.redGouIMG.alpha=1.0f; cell.wrongImage.alpha = 1.0f; cell.correctImage.alpha = 0.0f; } [options enumerateObjectsUsingBlock:^(NSDictionary * obj, NSUInteger idx, BOOL * _Nonnull stop) { if ([obj[@"right"] boolValue]==YES) { cell.greenGouIMG.alpha=1.0f; cell.correctImage.alpha=1.0f; }else{ cell.greenGouIMG.alpha=0.0f; cell.correctImage.alpha=0.0f; } }]; NSLog(@"xxxx%@",@"wrongImage"); } }else{ NSLog(@"当前回答者%@",@"correctImage"); } */