TempViewController.h 835 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // TempViewController.h
  3. // jiaPei
  4. //
  5. // Created by 张嵘 on 2019/8/27.
  6. // Copyright © 2019 JCZ. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @class QuesTionItem;
  11. @protocol TempViewControllerDelegate <NSObject>
  12. @optional
  13. /**
  14. 保存答题记录
  15. @param item 题目
  16. @param right 对错
  17. */
  18. - (void)saveTheAnswerRecordActionWithQuesTionItem:(QuesTionItem *_Nullable)item isRight:(NSInteger)right;
  19. @end
  20. @interface TempViewController : UIViewController
  21. @property (nonatomic, readwrite, strong) QuesTionItem * _Nullable model;
  22. @property (nonatomic, readwrite, assign) int index; ///<目前是第几道题
  23. @property (nonatomic, readwrite, weak, nullable) id<TempViewControllerDelegate> delegate;
  24. @property (nonatomic, readwrite, assign) BOOL showAnswer;///<1背题模式
  25. @end
  26. NS_ASSUME_NONNULL_END