-
Notifications
You must be signed in to change notification settings - Fork 1
/
SHCTableView.h
39 lines (27 loc) · 1.07 KB
/
SHCTableView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// SHCCustomTableView.h
// ClearStyle
//
// Created by Colin Eberhardt on 03/09/2012.
// Copyright (c) 2012 Colin Eberhardt. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SHCTableViewDataSource.h"
// the height of table cells
extern float const SHC_ROW_HEIGHT;
// A simple table implementation that renders cells within a scrolling container
@interface SHCTableView : UIView <UIScrollViewDelegate>
@property (nonatomic, assign) id<UIScrollViewDelegate> delegate;
// the object that acts as the data source for this table
@property (nonatomic, assign) id<SHCTableViewDataSource> datasource;
// the UIScrollView that hosts the table contents
@property (nonatomic, assign, readonly) UIScrollView* scrollView;
// dequeues a cell that can be re-used
-(UIView*) dequeueReusableCell;
// an array of cells that are currenlty visible, sorted from top to bottom.
-(NSArray*) visibleCells;
// forces the table to dispose of all the cells and re-build the table.
-(void) reloadData;
// registers a class for use as new cells
-(void) registerClassForCells: (Class)cellClass;
@end