summaryrefslogtreecommitdiff
path: root/Juick/DetailViewController.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2013-10-26 13:10:31 +0400
committerGravatar Vitaly Takmazov2013-10-26 13:10:31 +0400
commit7e7b734fc859234c9424b2ed98f5a2afef911de0 (patch)
tree1432e57829a5aebd0ca6e1ca596926d788f2e14a /Juick/DetailViewController.m
Initial Commit
Diffstat (limited to 'Juick/DetailViewController.m')
-rw-r--r--Juick/DetailViewController.m51
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