1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- //
- // 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");
- }
- */
|