about page now gets information from service
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
[FESDataProvider getDataFromServerForUrl:SCHEDULE_URL andProcessThemWith:^(NSData *data) {
|
||||
[self setupScheduleFromJSONArray:data];
|
||||
[self.tableView performSelectorOnMainThread:@selector(reloadData) withObject:nil waitUntilDone:NO];
|
||||
[self performSelectorOnMainThread:@selector(setupTitle) withObject:nil waitUntilDone:NO];
|
||||
}];
|
||||
|
||||
// Uncomment the following line to preserve selection between presentations.
|
||||
@@ -89,6 +90,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
-(void)setupTitle {
|
||||
if (scheduleArray != nil && scheduleArray.count > 0) {
|
||||
FESSCheduleEntry *se = [scheduleArray objectAtIndex:0];
|
||||
self.navigationItem.title = se.scheduleYear;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
|
||||
{
|
||||
@@ -158,6 +167,7 @@
|
||||
|
||||
// Pass the selected object to the new view controller.
|
||||
destination.scheduleFilmsArray = entry.scheduleFilms;
|
||||
destination.navigationItem.title = [[entry.scheduleDayOfWeek stringByAppendingString:@", "] stringByAppendingString:entry.scheduleDate];
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user