JXExamViewController.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 JXExamViewController : JXTableViewController
  11. @property(strong,nonatomic)NSString * ifAnswer;
  12. @end
  13. NS_ASSUME_NONNULL_END
  14. /**
  15. if(currentAnswerID.intValue == lastAnswer.intValue)
  16. {
  17. NSString * ifRight = [NSString stringWithFormat:@"%@",[dictionary objectForKey:@"right"]];
  18. if(ifRight.boolValue)
  19. {
  20. if (indexPath.row==[lastAnswer integerValue]-1) {
  21. cell.greenGouIMG.alpha=1.0f;
  22. cell.redGouIMG.alpha=0.0f;
  23. cell.correctImage.alpha = 1.0f;
  24. cell.wrongImage.alpha = 0.0f;
  25. }
  26. NSLog(@"xx%@",@"correctImage");
  27. }
  28. else
  29. {
  30. if (indexPath.row==[lastAnswer integerValue]-1) {
  31. cell.greenGouIMG.alpha=0.0f;
  32. cell.redGouIMG.alpha=1.0f;
  33. cell.wrongImage.alpha = 1.0f;
  34. cell.correctImage.alpha = 0.0f;
  35. }
  36. [options enumerateObjectsUsingBlock:^(NSDictionary * obj, NSUInteger idx, BOOL * _Nonnull stop) {
  37. if ([obj[@"right"] boolValue]==YES) {
  38. cell.greenGouIMG.alpha=1.0f;
  39. cell.correctImage.alpha=1.0f;
  40. }else{
  41. cell.greenGouIMG.alpha=0.0f;
  42. cell.correctImage.alpha=0.0f;
  43. }
  44. }];
  45. NSLog(@"xxxx%@",@"wrongImage");
  46. }
  47. }else{
  48. NSLog(@"当前回答者%@",@"correctImage");
  49. }
  50. */