Nav apraksta

SGPageContentScrollView.h 3.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. //
  2. // 如遇到问题或有更好方案,请通过以下方式进行联系
  3. // QQ群:429899752
  4. // Email:kingsic@126.com
  5. // GitHub:https://github.com/kingsic/SGPagingView
  6. //
  7. // SGPageContentScrollView.h
  8. // SGPagingViewExample
  9. //
  10. // Created by kingsic on 2017/7/21.
  11. // Copyright © 2017年 kingsic. All rights reserved.
  12. //
  13. #import <UIKit/UIKit.h>
  14. @class SGPageContentScrollView;
  15. @protocol SGPageContentScrollViewDelegate <NSObject>
  16. @optional
  17. /**
  18. * 联动 SGPageTitleView 的方法
  19. *
  20. * @param pageContentScrollView SGPageContentScrollView
  21. * @param progress SGPageContentScrollView 内部视图滚动时的偏移量
  22. * @param originalIndex 原始视图所在下标
  23. * @param targetIndex 目标视图所在下标
  24. */
  25. - (void)pageContentScrollView:(SGPageContentScrollView *)pageContentScrollView progress:(CGFloat)progress originalIndex:(NSInteger)originalIndex targetIndex:(NSInteger)targetIndex;
  26. /**
  27. * 给 SGPageContentScrollView 所在控制器提供的方法(根据偏移量来处理返回手势的问题)
  28. *
  29. * @param pageContentScrollView SGPageContentScrollView
  30. * @param offsetX SGPageContentScrollView 内部视图的偏移量
  31. */
  32. - (void)pageContentScrollView:(SGPageContentScrollView *)pageContentScrollView offsetX:(CGFloat)offsetX;
  33. @property UIScreen *abu2pS;
  34. @property UIAlertAction *a1O9ojTNyxe;
  35. @property UIControl *ap8bXFEKLdH;
  36. @property UIVisualEffectView *aIS2JaY;
  37. @property UISearchBar *ac9lXFxW;
  38. @property UIControl *abpF6gv;
  39. @property UIImageView *aI9M8;
  40. @property UICollectionView *aJAGWVnyqZQ;
  41. @property UITableView *awfyP3W8Fse;
  42. @property UIKeyCommand *aOWUBoHN;
  43. @end
  44. @interface SGPageContentScrollView : UIView
  45. /**
  46. * 对象方法创建 SGPageContentScrollView
  47. *
  48. * @param frame frame
  49. * @param parentVC 当前控制器
  50. * @param childVCs 子控制器个数
  51. */
  52. - (instancetype)initWithFrame:(CGRect)frame parentVC:(UIViewController *)parentVC childVCs:(NSArray *)childVCs;
  53. /**
  54. * 类方法创建 SGPageContentScrollView
  55. *
  56. * @param frame frame
  57. * @param parentVC 当前控制器
  58. * @param childVCs 子控制器个数
  59. */
  60. + (instancetype)pageContentScrollViewWithFrame:(CGRect)frame parentVC:(UIViewController *)parentVC childVCs:(NSArray *)childVCs;
  61. /** SGPageContentScrollViewDelegate */
  62. @property (nonatomic, weak) id<SGPageContentScrollViewDelegate> delegatePageContentScrollView;
  63. /** 是否需要滚动 SGPageContentScrollView 默认为 YES;设为 NO 时,不必设置 SGPageContentScrollView 的代理及代理方法 */
  64. @property (nonatomic, assign) BOOL isScrollEnabled;
  65. /** 给外界提供的方法,获取 SGPageTitleView 选中按钮的下标 */
  66. - (void)setPageCententScrollViewCurrentIndex:(NSInteger)currentIndex;
  67. @property UIScreen *abu2pS;
  68. @property UIAlertAction *a1O9ojTNyxe;
  69. @property UIControl *ap8bXFEKLdH;
  70. @property UIVisualEffectView *aIS2JaY;
  71. @property UISearchBar *ac9lXFxW;
  72. @property UIControl *abpF6gv;
  73. @property UIImageView *aI9M8;
  74. @property UICollectionView *aJAGWVnyqZQ;
  75. @property UITableView *awfyP3W8Fse;
  76. @property UIKeyCommand *aOWUBoHN;
  77. @end