JDViewController.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // JDViewController.h
  3. // kneet2
  4. //
  5. // Created by Created by Jason Lee on 10/1/15.
  6. // Copyright (c) 2015 ntels. All rights reserved.
  7. //
  8. #import "JDObject.h"
  9. #import "KNTableViewCell.h"
  10. #import "KNView.h"
  11. #import "MoreButtonDelegate.h"
  12. typedef enum MorePopupBtnType {
  13. none = 30001,
  14. masterChange,
  15. add,
  16. del,
  17. reload,
  18. } MorePopupBtnType;
  19. //typedef enum NaviMenu {
  20. // device = 40001,
  21. // rule,
  22. // member
  23. //} NaviMenu;
  24. @class CustomTableView;
  25. @interface JDViewController : UIViewController<MoreButtonDelegate> {
  26. @protected
  27. NSMutableArray *_popooverOptionArray;
  28. __weak UIView *_mainView;
  29. }
  30. #pragma mark - Properties
  31. @property (weak, nonatomic) IBOutlet UIView *mainView;
  32. #pragma mark - Instance Methods
  33. - (void)initTableViewAsDefaultStyle:(CustomTableView *)tableView;
  34. - (UIButton *)generateOptionButton;
  35. - (void)toggleOptionsWithArray:(id)sender btnArray:(NSMutableArray *)btnArray;
  36. - (void)retrunMoreString:(NSString *)moreString;
  37. - (void)returnMoreButton:(UIButton *)moreBtn;
  38. //- (void)toggleOptionsWithType:(id)sender firstBtn:(MorePopupBtnType)firstBtn secondBtn:(MorePopupBtnType)secondBtn thirdBtn:(MorePopupBtnType)thirdBtn fourthBtn:(MorePopupBtnType)fourthBtn;
  39. - (void)toggleOptions:(id)sender;
  40. - (void)resetOptions;
  41. - (void)dismissOptionPopOver:(void (^)(void))completion;
  42. //table view
  43. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;
  44. @end