diff options
Diffstat (limited to 'Classes/ChatMessagesDataSource.m')
| -rw-r--r-- | Classes/ChatMessagesDataSource.m | 33 | 
1 files changed, 33 insertions, 0 deletions
| diff --git a/Classes/ChatMessagesDataSource.m b/Classes/ChatMessagesDataSource.m new file mode 100644 index 0000000..f3a60cb --- /dev/null +++ b/Classes/ChatMessagesDataSource.m @@ -0,0 +1,33 @@ +// +//  ChatMessagesDataSource.m +//  NearMe +// +//  Created by TW on 9/29/12. +//  Copyright 2012 __MyCompanyName__. All rights reserved. +// + +#import "ChatMessagesDataSource.h" + + +@implementation ChatMessagesDataSource + +- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { +	return 5; +} + +- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { +	static NSString *CellIdentifier = @"ChatCell"; +	  +	UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; +	if (cell == nil) { +		cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease]; +	} +	  +	// Set up the cell... +	NSString *cellValue = @"test"; +	cell.textLabel.text = cellValue; +	  +	return cell; +} + +@end | 
