JXQuestionnVc.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //
  2. // JXExamViewController.h
  3. // shiku_im
  4. //
  5. // Created by qiudezheng on 2020/4/29.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import "JXTableViewController.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface JXQuestionnVc : JXTableViewController
  11. @property(strong,nonatomic)NSString * ifAnswer;
  12. @property (nonatomic,assign) BOOL isCheck;
  13. @property (nonatomic,assign) BOOL isclick;
  14. @end
  15. NS_ASSUME_NONNULL_END
  16. /**
  17. if(currentAnswerID.intValue == lastAnswer.intValue)
  18. {
  19. NSString * ifRight = [NSString stringWithFormat:@"%@",[dictionary objectForKey:@"right"]];
  20. if(ifRight.boolValue)
  21. {
  22. if (indexPath.row==[lastAnswer integerValue]-1) {
  23. cell.greenGouIMG.alpha=1.0f;
  24. cell.redGouIMG.alpha=0.0f;
  25. cell.correctImage.alpha = 1.0f;
  26. cell.wrongImage.alpha = 0.0f;
  27. }
  28. NSLog(@"xx%@",@"correctImage");
  29. }
  30. else
  31. {
  32. if (indexPath.row==[lastAnswer integerValue]-1) {
  33. cell.greenGouIMG.alpha=0.0f;
  34. cell.redGouIMG.alpha=1.0f;
  35. cell.wrongImage.alpha = 1.0f;
  36. cell.correctImage.alpha = 0.0f;
  37. }
  38. [options enumerateObjectsUsingBlock:^(NSDictionary * obj, NSUInteger idx, BOOL * _Nonnull stop) {
  39. if ([obj[@"right"] boolValue]==YES) {
  40. cell.greenGouIMG.alpha=1.0f;
  41. cell.correctImage.alpha=1.0f;
  42. }else{
  43. cell.greenGouIMG.alpha=0.0f;
  44. cell.correctImage.alpha=0.0f;
  45. }
  46. }];
  47. NSLog(@"xxxx%@",@"wrongImage");
  48. }
  49. }else{
  50. NSLog(@"当前回答者%@",@"correctImage");
  51. }
  52. */