NIDropDown.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // NIDropDown.h
  3. // NIDropDown
  4. //
  5. // Created by Bijesh N on 12/28/12.
  6. // Copyright (c) 2012 Nitor Infotech. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class NIDropDown;
  10. @protocol NIDropDownDelegate
  11. - (void) niDropDownDelegateMethod: (NIDropDown *) sender;
  12. @end
  13. @interface NIDropDown : UIView <UITableViewDelegate, UITableViewDataSource>
  14. {
  15. NSString *animationDirection;
  16. UIImageView *imgView;
  17. }
  18. @property (nonatomic, retain) id <NIDropDownDelegate> delegate;
  19. @property (nonatomic, retain) NSString *animationDirection;
  20. -(void)hideDropDown:(UIButton *)b;
  21. //- (id)showDropDown:(UIButton *)b:(CGFloat *)height:(NSArray *)arr:(NSArray *)imgArr:(NSString *)direction;
  22. - (id)showDropDown:(UIView*)container based:(UIButton *)b height:(CGFloat )height data:(NSDictionary *)json direction:(NSString *)direction current_sel:(long) current_sel;
  23. @property (nonatomic , copy) void (^selectChanged)(long index);
  24. @property (nonatomic,copy) void(^dropDownTouchOutsideBlk)(void);
  25. @property (strong,nonatomic) NSDictionary* selector;
  26. @property long current_sel;
  27. @end