1234567891011121314151617181920212223242526272829303132 |
- //
- // TempViewController.h
- // jiaPei
- //
- // Created by 张嵘 on 2019/8/27.
- // Copyright © 2019 JCZ. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- @class QuesTionItem;
- @protocol TempViewControllerDelegate <NSObject>
- @optional
- /**
- 保存答题记录
- @param item 题目
- @param right 对错
- */
- - (void)saveTheAnswerRecordActionWithQuesTionItem:(QuesTionItem *_Nullable)item isRight:(NSInteger)right;
- @end
- @interface TempViewController : UIViewController
- @property (nonatomic, readwrite, strong) QuesTionItem * _Nullable model;
- @property (nonatomic, readwrite, assign) int index; ///<目前是第几道题
- @property (nonatomic, readwrite, weak, nullable) id<TempViewControllerDelegate> delegate;
- @property (nonatomic, readwrite, assign) BOOL showAnswer;///<1背题模式
- @end
- NS_ASSUME_NONNULL_END
|