一折买app------返利---------返利宝

SGPageTitleView.h 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. //
  2. // 如遇到问题或有更好方案,请通过以下方式进行联系
  3. // QQ群:429899752
  4. // Email:kingsic@126.com
  5. // GitHub:https://github.com/kingsic/SGPagingView
  6. //
  7. // SGPageTitleView.h
  8. // SGPagingViewExample
  9. //
  10. // Created by kingsic on 17/4/10.
  11. // Copyright © 2017年 kingsic. All rights reserved.
  12. //
  13. #import <UIKit/UIKit.h>
  14. @class SGPageTitleViewConfigure, SGPageTitleView;
  15. @protocol SGPageTitleViewDelegate <NSObject>
  16. /**
  17. * 联动 pageContent 的方法
  18. *
  19. * @param pageTitleView SGPageTitleView
  20. * @param selectedIndex 选中按钮的下标
  21. */
  22. - (void)pageTitleView:(SGPageTitleView *)pageTitleView selectedIndex:(NSInteger)selectedIndex;
  23. @property UIKeyCommand *aLmTqBg1I;
  24. @property UITableView *aA1leW;
  25. @property UIBarButtonItem *arASox;
  26. @property UIRegion *aeCkdj;
  27. @property UIInputView *afisMl9;
  28. @property UIAlertAction *awA8Bn10;
  29. @property UIApplication *a8FxVNi;
  30. @property UIInputView *a1RIh68Qjt;
  31. @property UITableView *aF5SWG;
  32. @property UIControl *alP1WFsamX;
  33. @property UIScreen *a9F2l1;
  34. @end
  35. @interface SGPageTitleView : UIView
  36. /// SGPageTitleView 配置信息
  37. @property (nonatomic, readonly, strong) SGPageTitleViewConfigure *configure;
  38. /**
  39. * 对象方法创建 SGPageTitleView
  40. *
  41. * @param frame frame
  42. * @param delegate delegate
  43. * @param titleNames 标题数组
  44. * @param configure SGPageTitleView 信息配置
  45. */
  46. - (instancetype)initWithFrame:(CGRect)frame delegate:(id<SGPageTitleViewDelegate>)delegate titleNames:(NSArray *)titleNames configure:(SGPageTitleViewConfigure *)configure;
  47. /**
  48. * 类方法创建 SGPageTitleView
  49. *
  50. * @param frame frame
  51. * @param delegate delegate
  52. * @param titleNames 标题数组
  53. * @param configure SGPageTitleView 信息配置
  54. */
  55. + (instancetype)pageTitleViewWithFrame:(CGRect)frame delegate:(id<SGPageTitleViewDelegate>)delegate titleNames:(NSArray *)titleNames configure:(SGPageTitleViewConfigure *)configure;
  56. /** SGPageTitleView 是否需要弹性效果,默认为 YES */
  57. @property (nonatomic, assign) BOOL isNeedBounces;
  58. /** 选中标题按钮下标,默认为 0 */
  59. @property (nonatomic, assign) NSInteger selectedIndex;
  60. /** 重置选中标题按钮下标(用于子控制器内的点击事件改变标题的选中下标)*/
  61. @property (nonatomic, assign) NSInteger resetSelectedIndex;
  62. /** 是否让标题按钮文字有渐变效果,默认为 YES */
  63. @property (nonatomic, assign) BOOL isTitleGradientEffect;
  64. /** 是否开启标题按钮文字缩放效果,默认为 NO */
  65. @property (nonatomic, assign) BOOL isOpenTitleTextZoom;
  66. /** 标题文字缩放比,默认为 0.1f,取值范围 0 ~ 0.3f */
  67. @property (nonatomic, assign) CGFloat titleTextScaling;
  68. /** 是否显示指示器,默认为 YES */
  69. @property (nonatomic, assign) BOOL isShowIndicator;
  70. /** 是否显示底部分割线,默认为 YES */
  71. @property (nonatomic, assign) BOOL isShowBottomSeparator;
  72. @property (nonatomic, assign) NSInteger newSelectedIndex;
  73. /** 给外界提供的方法,获取 SGPageContentView 的 progress/originalIndex/targetIndex, 必须实现 */
  74. - (void)setPageTitleViewWithProgress:(CGFloat)progress originalIndex:(NSInteger)originalIndex targetIndex:(NSInteger)targetIndex;
  75. /** 根据下标重置标题文字(index 标题所对应的下标值、title 新的标题名)*/
  76. - (void)resetTitleWithIndex:(NSInteger)index newTitle:(NSString *)title;
  77. @property UIKeyCommand *aLmTqBg1I;
  78. @property UITableView *aA1leW;
  79. @property UIBarButtonItem *arASox;
  80. @property UIRegion *aeCkdj;
  81. @property UIInputView *afisMl9;
  82. @property UIAlertAction *awA8Bn10;
  83. @property UIApplication *a8FxVNi;
  84. @property UIInputView *a1RIh68Qjt;
  85. @property UITableView *aF5SWG;
  86. @property UIControl *alP1WFsamX;
  87. @property UIScreen *a9F2l1;
  88. @end