Advertisement
Guest User

UICombo.h

a guest
May 17th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //
  2. //  UICombo.h
  3. //  UICombo
  4. //
  5. //  Created by Prince Kumar Sharma on 25/03/13.
  6. //  Copyright (c) 2013 Prince Kumar Sharma. All rights reserved.
  7.  
  8. #import <UIKit/UIKit.h>
  9. #import <QuartzCore/QuartzCore.h>
  10.  
  11. @class UICombo;
  12.  
  13. @protocol UIComboDelegate <NSObject>
  14. - (void)comboView:(UICombo*)combo didSelectItemAtIndex:(int)indx;
  15. @end
  16.  
  17. @class UIViewController;
  18.  
  19. @interface UICombo : UIView<UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate,UIScrollViewDelegate>
  20. {
  21. @private
  22.     int numberOfObjects;
  23.  
  24.     NSArray *items;
  25.     UITableView *_tableView;
  26.     UITextField *_textField;
  27.     UIButton *_button;
  28. }
  29.  
  30. @property(nonatomic,strong) id <UIComboDelegate> delegate;
  31.  
  32. - (id)initWithFrame:(CGRect)frame andItems:(NSArray*)itemArray;
  33. -(void)setForeGroundColor:(UIColor*)cColor;
  34. -(NSString*)getSeletedItem;
  35. -(void)setselectObject:(NSString*)object;
  36. -(void)setSelected:(int)index;
  37. -(int)selectedIndex;
  38. -(void)addItem:(NSString*)item;
  39. -(void)insertItem:(NSString*)item AtIndex:(int)index;
  40. -(void)setItems:(NSArray*)items_array;
  41. -(int)removeItem;
  42. -(void)removeItemAtIndex:(NSUInteger)index;
  43. -(void)refresh;
  44. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement