// // JDViewController.h // kneet2 // // Created by Created by Jason Lee on 10/1/15. // Copyright (c) 2015 ntels. All rights reserved. // #import "JDObject.h" #import "KNTableViewCell.h" #import "KNView.h" #import "MoreButtonDelegate.h" typedef enum MorePopupBtnType { none = 30001, masterChange, add, del, reload, } MorePopupBtnType; //typedef enum NaviMenu { // device = 40001, // rule, // member //} NaviMenu; @class CustomTableView; @interface JDViewController : UIViewController { @protected NSMutableArray *_popooverOptionArray; __weak UIView *_mainView; } #pragma mark - Properties @property (weak, nonatomic) IBOutlet UIView *mainView; #pragma mark - Instance Methods - (void)initTableViewAsDefaultStyle:(CustomTableView *)tableView; - (UIButton *)generateOptionButton; - (void)toggleOptionsWithArray:(id)sender btnArray:(NSMutableArray *)btnArray; - (void)retrunMoreString:(NSString *)moreString; - (void)returnMoreButton:(UIButton *)moreBtn; //- (void)toggleOptionsWithType:(id)sender firstBtn:(MorePopupBtnType)firstBtn secondBtn:(MorePopupBtnType)secondBtn thirdBtn:(MorePopupBtnType)thirdBtn fourthBtn:(MorePopupBtnType)fourthBtn; - (void)toggleOptions:(id)sender; - (void)resetOptions; - (void)dismissOptionPopOver:(void (^)(void))completion; //table view - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath; @end