酷店

MSSAutoresizeLabelFlow.h 973B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // MSSAutoresizeLabelFlow.h
  3. // MSSAutoresizeLabelFlow
  4. //
  5. // Created by Mrss on 15/12/26.
  6. // Copyright © 2015年 expai. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef void(^selectedHandler)(NSUInteger index,NSString *title);
  10. @interface MSSAutoresizeLabelFlow : UIView
  11. - (instancetype)initWithFrame:(CGRect)frame
  12. titles:(NSArray *)titles
  13. selectedHandler:(selectedHandler)handler;
  14. - (void)insertLabelWithTitle:(NSString *)title
  15. atIndex:(NSUInteger)index
  16. animated:(BOOL)animated;
  17. - (void)insertLabelsWithTitles:(NSArray *)titles
  18. atIndexes:(NSIndexSet *)indexes
  19. animated:(BOOL)animated;
  20. - (void)deleteLabelAtIndex:(NSUInteger)index
  21. animated:(BOOL)animated;
  22. - (void)deleteLabelsAtIndexes:(NSIndexSet *)indexes
  23. animated:(BOOL)animated;
  24. - (void)reloadAllWithTitles:(NSArray *)titles;
  25. @end