YBIBCellProtocol.h 850 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // YBIBCellProtocol.h
  3. // YBImageBrowserDemo
  4. //
  5. // Created by 波儿菜 on 2019/6/5.
  6. // Copyright © 2019 波儿菜. All rights reserved.
  7. //
  8. #import "YBIBGetBaseInfoProtocol.h"
  9. #import "YBIBOrientationReceiveProtocol.h"
  10. #import "YBIBOperateBrowserProtocol.h"
  11. @protocol YBIBDataProtocol;
  12. NS_ASSUME_NONNULL_BEGIN
  13. @protocol YBIBCellProtocol <YBIBGetBaseInfoProtocol, YBIBOperateBrowserProtocol, YBIBOrientationReceiveProtocol>
  14. @required
  15. /// Cell 对应的 Data
  16. @property (nonatomic, strong) id<YBIBDataProtocol> yb_cellData;
  17. @optional
  18. /**
  19. 获取前景视图,出入场时需要用这个返回值做动效
  20. @return 前景视图
  21. */
  22. - (__kindof UIView *)yb_foregroundView;
  23. /**
  24. 页码变化了
  25. */
  26. - (void)yb_pageChanged;
  27. /// 当前 Cell 的页码
  28. @property (nonatomic, copy) NSInteger(^yb_selfPage)(void);
  29. @end
  30. NS_ASSUME_NONNULL_END