venue in schedule now shows correctly

This commit is contained in:
Senad Uka
2014-09-04 08:28:15 +02:00
parent 10eb4e0f14
commit 0e1b3048ce
7 changed files with 164 additions and 26 deletions

View File

@@ -8,6 +8,7 @@
#import "FESScheduleFilmsViewController.h"
#import "FESScheduleFilm.h"
#import "FESScheduleFilmCell.h"
@interface FESScheduleFilmsViewController ()
@@ -55,16 +56,26 @@
return [scheduleFilmsArray count];
}
/*
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:<#@"reuseIdentifier"#> forIndexPath:indexPath];
// Configure the cell...
UITableViewCell *retrievedCell = [tableView dequeueReusableCellWithIdentifier:@"scheduleFilmCell" forIndexPath:indexPath];
FESScheduleFilmCell *cell = (FESScheduleFilmCell *)retrievedCell;
if(cell)
{
//The beauty of this is that you have all your data in one object and grab WHATEVER you like
//This way in the future you can add another field without doing much.
FESScheduleFilm *scheduleFilm = [scheduleFilmsArray objectAtIndex:indexPath.row];
cell.scheduleFilmTime.text = scheduleFilm.scheduleFilmTime;
cell.scheduleFilmDuration.text = scheduleFilm.scheduleFilmDuration;
cell.scheduleFilmTitle.text = scheduleFilm.scheduleFilmTitle;
cell.scheduleFilmVenue.text = scheduleFilm.scheduleFilmVenue;
}
return cell;
}
*/
/*
// Override to support conditional editing of the table view.