MOScrollMenuView.h 629 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // MOScrollMenuView.h
  3. // powerone
  4. //
  5. // Created by SuperC on 2019/8/8.
  6. // Copyright © 2019 onecloud.ltd. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface MOCountryBtn : UIButton
  11. @end
  12. @interface MOScrollMenuView : UIScrollView
  13. /** 菜单标题数组 */
  14. @property (nonatomic, strong) NSArray *titleArray;
  15. /** 当前选择的按钮的index */
  16. @property (nonatomic, assign) NSInteger currentButtonIndex;
  17. /** 菜单按钮点击时回调block, 所点按钮的index */
  18. @property (nonatomic, copy) void(^clickBtnBlock)(NSInteger index);
  19. - (void)reloadData;
  20. @end
  21. NS_ASSUME_NONNULL_END