about page now gets information from service
This commit is contained in:
71
FestivalHelper/films/FESFilmDetailsViewController.m
Normal file
71
FestivalHelper/films/FESFilmDetailsViewController.m
Normal file
@@ -0,0 +1,71 @@
|
||||
//
|
||||
// FESFilmDetailsViewController.m
|
||||
// FestivalHelper
|
||||
//
|
||||
// Created by Hamo Hapic on 06/09/14.
|
||||
// Copyright (c) 2014 Senad Uka. All rights reserved.
|
||||
//
|
||||
|
||||
#import "FESFilmDetailsViewController.h"
|
||||
#import "FESFilmEntry.h"
|
||||
|
||||
@interface FESFilmDetailsViewController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation FESFilmDetailsViewController
|
||||
|
||||
@synthesize filmEntry;
|
||||
@synthesize filmTitle;
|
||||
@synthesize filmDirectors;
|
||||
@synthesize filmProgram;
|
||||
@synthesize filmDescription;
|
||||
@synthesize filmTagLines;
|
||||
@synthesize filmTitleTranslation;
|
||||
@synthesize filmTime;
|
||||
@synthesize filmDate;
|
||||
|
||||
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
||||
{
|
||||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
||||
if (self) {
|
||||
// Custom initialization
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
if(filmEntry != nil) {
|
||||
filmTitle.text = filmEntry.filmTitle;
|
||||
filmTime.text = filmEntry.filmTime;
|
||||
filmTagLines.text = filmEntry.filmTagLines;
|
||||
filmTitleTranslation.text = filmEntry.filmTitleTranslation;
|
||||
filmDirectors.text = filmEntry.filmDirectors;
|
||||
filmDescription.text = filmEntry.filmDescription;
|
||||
filmProgram.text = filmEntry.filmProgram;
|
||||
filmDate.text = filmEntry.filmDate;
|
||||
self.navigationItem.title = filmEntry.filmTitle;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
{
|
||||
[super didReceiveMemoryWarning];
|
||||
// Dispose of any resources that can be recreated.
|
||||
}
|
||||
|
||||
/*
|
||||
#pragma mark - Navigation
|
||||
|
||||
// In a storyboard-based application, you will often want to do a little preparation before navigation
|
||||
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
|
||||
{
|
||||
// Get the new view controller using [segue destinationViewController].
|
||||
// Pass the selected object to the new view controller.
|
||||
}
|
||||
*/
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user