about page now gets information from service

This commit is contained in:
Senad Uka
2014-09-07 07:18:07 +02:00
parent 90d0d8561b
commit 376072712a
15 changed files with 522 additions and 106 deletions

View File

@@ -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];
}