DropDownListView.h 989 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // DropDownListView.h
  3. // DropDownDemo
  4. //
  5. // Created by 童明城 on 14-5-28.
  6. // Copyright (c) 2016年 童明城. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "DropDownChooseProtocol.h"
  10. #define SECTION_BTN_TAG_BEGIN 1000
  11. #define SECTION_IV_TAG_BEGIN 3000
  12. @interface DropDownListView : UIView<UITableViewDelegate,UITableViewDataSource>{
  13. NSInteger currentExtendSection; //当前展开的section ,默认-1时,表示都没有展开
  14. }
  15. @property (nonatomic, assign) id<DropDownChooseDelegate> dropDownDelegate;
  16. @property (nonatomic, assign) id<DropDownChooseDataSource> dropDownDataSource;
  17. @property (nonatomic, strong) UIView *mSuperView;
  18. @property (nonatomic, strong) UIView *mTableBaseView;
  19. @property (nonatomic, strong) UITableView *mTableView;
  20. - (id)initWithFrame:(CGRect)frame dataSource:(id)datasource delegate:(id) delegate;
  21. - (void)setTitle:(NSString *)title inSection:(NSInteger) section;
  22. - (BOOL)isShow;
  23. - (void)hideExtendedChooseView;
  24. @end