diff options
Diffstat (limited to 'Juick/DetailViewController.m')
-rw-r--r-- | Juick/DetailViewController.m | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/Juick/DetailViewController.m b/Juick/DetailViewController.m new file mode 100644 index 0000000..4d510c9 --- /dev/null +++ b/Juick/DetailViewController.m @@ -0,0 +1,51 @@ +// +// DetailViewController.m +// Juick +// +// Created by Vitaly Takmazov on 26.10.13. +// Copyright (c) 2013 com.juick. All rights reserved. +// + +#import "DetailViewController.h" + +@interface DetailViewController () +- (void)configureView; +@end + +@implementation DetailViewController + +#pragma mark - Managing the detail item + +- (void)setDetailItem:(id)newDetailItem +{ + if (_detailItem != newDetailItem) { + _detailItem = newDetailItem; + + // Update the view. + [self configureView]; + } +} + +- (void)configureView +{ + // Update the user interface for the detail item. + + if (self.detailItem) { + self.detailDescriptionLabel.text = [self.detailItem description]; + } +} + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. + [self configureView]; +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end |