about page now gets information from service
This commit is contained in:
32
FestivalHelper/films/FESFilmDetailsViewController.h
Normal file
32
FestivalHelper/films/FESFilmDetailsViewController.h
Normal file
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// FESFilmDetailsViewController.h
|
||||
// FestivalHelper
|
||||
//
|
||||
// Created by Hamo Hapic on 06/09/14.
|
||||
// Copyright (c) 2014 Senad Uka. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@class FESFilmEntry;
|
||||
|
||||
@interface FESFilmDetailsViewController : UIViewController
|
||||
|
||||
@property (strong)FESFilmEntry *filmEntry;
|
||||
|
||||
|
||||
|
||||
@property (weak, nonatomic)IBOutlet UILabel *filmTitle;
|
||||
@property (weak, nonatomic)IBOutlet UILabel *filmTitleTranslation;
|
||||
@property (weak, nonatomic)IBOutlet UILabel *filmProgram;
|
||||
@property (weak, nonatomic)IBOutlet UILabel *filmDate;
|
||||
@property (weak, nonatomic)IBOutlet UILabel *filmTime;
|
||||
@property (weak, nonatomic)IBOutlet UITextView *filmDescription;
|
||||
@property (weak, nonatomic)IBOutlet UILabel *filmDirectors;
|
||||
@property (weak, nonatomic)IBOutlet UILabel *filmTagLines;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@end
|
||||
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
|
||||
@@ -10,6 +10,7 @@
|
||||
#import "FESFilmEntry.h"
|
||||
#import "FESDataProvider.h"
|
||||
#import "FESFilmEntryCell.h"
|
||||
#import "FESFilmDetailsViewController.h"
|
||||
|
||||
@interface FESFilmsTableViewController ()
|
||||
|
||||
@@ -59,6 +60,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
- (void)didReceiveMemoryWarning
|
||||
{
|
||||
[super didReceiveMemoryWarning];
|
||||
@@ -133,15 +135,16 @@
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
|
||||
#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.
|
||||
FESFilmDetailsViewController *destination = [segue destinationViewController];
|
||||
destination.filmEntry = [filmsArray objectAtIndex:self.tableView.indexPathForSelectedRow.row];
|
||||
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user