Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // UICombo.h
- // UICombo
- //
- // Created by Prince Kumar Sharma on 25/03/13.
- // Copyright (c) 2013 Prince Kumar Sharma. All rights reserved.
- #import <UIKit/UIKit.h>
- #import <QuartzCore/QuartzCore.h>
- @class UICombo;
- @protocol UIComboDelegate <NSObject>
- - (void)comboView:(UICombo*)combo didSelectItemAtIndex:(int)indx;
- @end
- @class UIViewController;
- @interface UICombo : UIView<UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate,UIScrollViewDelegate>
- {
- @private
- int numberOfObjects;
- NSArray *items;
- UITableView *_tableView;
- UITextField *_textField;
- UIButton *_button;
- }
- @property(nonatomic,strong) id <UIComboDelegate> delegate;
- - (id)initWithFrame:(CGRect)frame andItems:(NSArray*)itemArray;
- -(void)setForeGroundColor:(UIColor*)cColor;
- -(NSString*)getSeletedItem;
- -(void)setselectObject:(NSString*)object;
- -(void)setSelected:(int)index;
- -(int)selectedIndex;
- -(void)addItem:(NSString*)item;
- -(void)insertItem:(NSString*)item AtIndex:(int)index;
- -(void)setItems:(NSArray*)items_array;
- -(int)removeItem;
- -(void)removeItemAtIndex:(NSUInteger)index;
- -(void)refresh;
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement