- (NSInteger)numberOfSectionsInTableView

UITableView *)tableView {
return 1;
}
// Customize the number of rows in the table view.
- (NSInteger)tableView

UITableView *)tableView numberOfRowsInSection

NSInteger)section {
CheapEatAppDelegate *appDelegate = (CheapEatAppDelegate *)[[UIApplication sharedApplication] delegate];
return [appDelegate.rezepte count];
}
// Customize the appearance of table view cells.
- (UITableViewCell *)tableView

UITableView *)tableView cellForRowAtIndexPath

NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
CheapEatAppDelegate *appDelegate = (CheapEatAppDelegate *)[[UIApplication sharedApplication] delegate];
Rezept *r = (Rezept *)[appDelegate.rezepte objectAtIndex:indexPath.row];
cell.imageView.image = [UIImage imageNamed:[r imageSmall]];
cell.selectionStyle = UITableViewCellSelectionStyleGray;
UILabel *mainLabel = [[UILabel alloc] initWithFrame:CGRectMake(62, 13, 220, 19)];
mainLabel.text = r.name;
mainLabel.font = [UIFont fontWithName

"Helvetica Neue" size:19.0];
mainLabel.textColor = [UIColor colorWithRed:255.0/255.0 green:216.0/255.0 blue:0.0/255.0 alpha:1.0/1.0];
mainLabel.shadowColor = [UIColor colorWithWhite:0.0 alpha:0.5];
mainLabel.backgroundColor = [UIColor clearColor];
UILabel *detailLabel = [[UILabel alloc] initWithFrame:CGRectMake(59, 35, 230, 14)];
detailLabel.textAlignment = UITextAlignmentLeft;
detailLabel.font = [UIFont fontWithName

"Helvetica Neue" size:11.0];
detailLabel.backgroundColor = [UIColor clearColor];
detailLabel.textColor = [UIColor lightGrayColor];
detailLabel.text = [r info];
detailLabel.shadowColor = [UIColor colorWithWhite:0.0 alpha:0.5];
[cell addSubview:detailLabel];
[cell addSubview:mainLabel];
return cell;
}
- (UITableViewCellAccessoryType)tableView

UITableView *)tv accessoryTypeForRowWithIndexPath

NSIndexPath *)indexPath {
return UITableViewCellAccessoryDisclosureIndicator;
}
// Override to support row selection in the table view.
- (void)tableView

UITableView *)tableView didSelectRowAtIndexPath

NSIndexPath *)indexPath {
CheapEatAppDelegate *appDelegate = (CheapEatAppDelegate *)[[UIApplication sharedApplication] delegate];
Rezept *rezept = (Rezept *)[appDelegate.rezepte objectAtIndex:indexPath.row];
if(self.rezeptView == nil) {
RezeptViewController *viewController = [[RezeptViewController alloc] initWithNibName

"RezeptViewController" bundle:[NSBundle mainBundle]];
self.rezeptView = viewController;
[viewController release];
}
if(self.tweetView == nil) {
TweetViewController *viewController = [[TweetViewController alloc] initWithNibName

"TweetViewController" bundle:[NSBundle mainBundle]];
self.tweetView = viewController;
[viewController release];
}
[self.navigationController pushViewController:self.rezeptView animated:YES];
[self.rezeptView.titleLabel setText:[rezept name]];
[self.rezeptView.rezeptDescription setText:[rezept description]];
[self.rezeptView.rezeptInfo setText:[rezept info]];
[self.rezeptView.rezeptImage setImage:[UIImage imageNamed:[rezept image]]];
[self.rezeptView.rezeptLine setImage:[UIImage imageNamed

"line.png"]];
}