Created
August 10, 2008 05:15
-
-
Save maddox/4728 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { | |
static NSString *MyIdentifier = @"MyIdentifier"; | |
TweetCell *cell = (TweetCell *)[tableView dequeueReusableCellWithIdentifier:MyIdentifier]; | |
if (cell == nil) { | |
cell = [[[TweetCell alloc] initWithFrame:CGRectZero reuseIdentifier:MyIdentifier] autorelease]; | |
} | |
// SummizerAppDelegate *appDelegate = (SummizerAppDelegate *)[[UIApplication sharedApplication] delegate]; | |
// cell.text = (NSString *)[self.jsonArray objectAtIndex:indexPath.row]; | |
NSDictionary *tweet; | |
tweet = [self.jsonArray objectAtIndex:indexPath.row]; | |
// NSDictionary *itemAtIndex = (NSDictionary *)[self.jsonArray objectAtIndex:indexPath.row]; | |
[cell setData:tweet]; | |
// [cell setText:[NSString stringWithFormat:@"@%@: %@", [tweet objectForKey:@"from_user"], [tweet objectForKey:@"text"]]]; | |
// [cell setText:[appDelegate.trends objectAtIndex:indexPath.row]]; | |
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; | |
cell.lineBreakMode = UILineBreakModeWordWrap; | |
// Set up the cell | |
return cell; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment