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

@@ -9,6 +9,7 @@
#import "FESScheduleTableViewController.h"
#import "FESSCheduleEntry.h"
#import "FESScheduleEntryCell.h"
#import "FESScheduleFilmsViewController.h"
@interface FESScheduleTableViewController ()
@@ -166,7 +167,11 @@
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
// Get the new view controller using [segue destinationViewController].
FESScheduleFilmsViewController *destination = (FESScheduleFilmsViewController *) [segue destinationViewController];
FESSCheduleEntry *entry = (FESSCheduleEntry *)[self.scheduleArray objectAtIndex:self.tableView.indexPathForSelectedRow.row];
// Pass the selected object to the new view controller.
destination.scheduleFilmsArray = entry.scheduleFilms;
}