Skip to content

Instantly share code, notes, and snippets.

@Blankwonder
Created February 1, 2013 13:19
Show Gist options
  • Save Blankwonder/4691263 to your computer and use it in GitHub Desktop.
Save Blankwonder/4691263 to your computer and use it in GitHub Desktop.
#import <UIKit/UIKit.h>
@protocol GEStaticTableViewDataSource, GEStaticTableViewDelegate;
@interface GEStaticTableView : UIView {
UIView *_selectMaskView;
}
@property (readonly, nonatomic) NSInteger numberOfRow;
- (void)reloadData;
@property (unsafe_unretained) id<GEStaticTableViewDataSource> dataSource;
@property (unsafe_unretained) id<GEStaticTableViewDelegate> delegate;
@property UIColor *separatorColor;
@property UIColor *separatorShadowColor;
@property UIColor *selectedMaskColor;
@property (getter = isSelectEnabled) BOOL selectEnabled;
@end
@protocol GEStaticTableViewDataSource<NSObject>
@required
- (NSInteger)tableView:(GEStaticTableView *)tableView numberOfRowsInSection:(NSInteger)section;
- (UIView *)tableView:(GEStaticTableView *)tableView cellForRowAtIndex:(NSInteger)index;
@end
@protocol GEStaticTableViewDelegate<NSObject>
@required
- (void)tableViewDidChangeHeight:(GEStaticTableView *)tableView;
@optional
- (void)tableView:(GEStaticTableView *)tableView didSelectRowAtIndex:(NSInteger)index;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment