123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- //
- // 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 JXQuestionnVc : JXTableViewController
- @property(strong,nonatomic)NSString * ifAnswer;
- @property (nonatomic,assign) BOOL isCheck;
- @property (nonatomic,assign) BOOL isclick;
- @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");
- }
- */
|