Aucune description

SGPageTitleView.h 3.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 UIInputView *aUi5A8nGLD;
  24. @property UIUserInterfaceIdiom *abn2pX;
  25. @property UIEvent *avTq7Am;
  26. @property UIEdgeInsets *aB18zf6uva;
  27. @property UIEvent *a9ycB;
  28. @property UIApplication *a01Hlf;
  29. @property UIAlertAction *akg1IDbT9;
  30. @property UIScreen *aOZNIh1vt;
  31. @property UIControlEvents *aLUWb1hpfoS;
  32. @end
  33. @interface SGPageTitleView : UIView
  34. /// SGPageTitleView 配置信息
  35. @property (nonatomic, readonly, strong) SGPageTitleViewConfigure *configure;
  36. /**
  37. * 对象方法创建 SGPageTitleView
  38. *
  39. * @param frame frame
  40. * @param delegate delegate
  41. * @param titleNames 标题数组
  42. * @param configure SGPageTitleView 信息配置
  43. */
  44. - (instancetype)initWithFrame:(CGRect)frame delegate:(id<SGPageTitleViewDelegate>)delegate titleNames:(NSArray *)titleNames configure:(SGPageTitleViewConfigure *)configure;
  45. /**
  46. * 类方法创建 SGPageTitleView
  47. *
  48. * @param frame frame
  49. * @param delegate delegate
  50. * @param titleNames 标题数组
  51. * @param configure SGPageTitleView 信息配置
  52. */
  53. + (instancetype)pageTitleViewWithFrame:(CGRect)frame delegate:(id<SGPageTitleViewDelegate>)delegate titleNames:(NSArray *)titleNames configure:(SGPageTitleViewConfigure *)configure;
  54. /** SGPageTitleView 是否需要弹性效果,默认为 YES */
  55. @property (nonatomic, assign) BOOL isNeedBounces;
  56. /** 选中标题按钮下标,默认为 0 */
  57. @property (nonatomic, assign) NSInteger selectedIndex;
  58. /** 重置选中标题按钮下标(用于子控制器内的点击事件改变标题的选中下标)*/
  59. @property (nonatomic, assign) NSInteger resetSelectedIndex;
  60. /** 是否让标题按钮文字有渐变效果,默认为 YES */
  61. @property (nonatomic, assign) BOOL isTitleGradientEffect;
  62. /** 是否开启标题按钮文字缩放效果,默认为 NO */
  63. @property (nonatomic, assign) BOOL isOpenTitleTextZoom;
  64. /** 标题文字缩放比,默认为 0.1f,取值范围 0 ~ 0.3f */
  65. @property (nonatomic, assign) CGFloat titleTextScaling;
  66. /** 是否显示指示器,默认为 YES */
  67. @property (nonatomic, assign) BOOL isShowIndicator;
  68. /** 是否显示底部分割线,默认为 YES */
  69. @property (nonatomic, assign) BOOL isShowBottomSeparator;
  70. @property (nonatomic, assign) NSInteger newSelectedIndex;
  71. /** 给外界提供的方法,获取 SGPageContentView 的 progress/originalIndex/targetIndex, 必须实现 */
  72. - (void)setPageTitleViewWithProgress:(CGFloat)progress originalIndex:(NSInteger)originalIndex targetIndex:(NSInteger)targetIndex;
  73. /** 根据下标重置标题文字(index 标题所对应的下标值、title 新的标题名)*/
  74. - (void)resetTitleWithIndex:(NSInteger)index newTitle:(NSString *)title;
  75. @property UIInputView *aUi5A8nGLD;
  76. @property UIUserInterfaceIdiom *abn2pX;
  77. @property UIEvent *avTq7Am;
  78. @property UIEdgeInsets *aB18zf6uva;
  79. @property UIEvent *a9ycB;
  80. @property UIApplication *a01Hlf;
  81. @property UIAlertAction *akg1IDbT9;
  82. @property UIScreen *aOZNIh1vt;
  83. @property UIControlEvents *aLUWb1hpfoS;
  84. @end