diff options
Diffstat (limited to 'example/ios/iOS UI Test/iOS UI Test/DetailViewController.m')
-rw-r--r-- | example/ios/iOS UI Test/iOS UI Test/DetailViewController.m | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test/DetailViewController.m b/example/ios/iOS UI Test/iOS UI Test/DetailViewController.m new file mode 100644 index 00000000..16100698 --- /dev/null +++ b/example/ios/iOS UI Test/iOS UI Test/DetailViewController.m @@ -0,0 +1,51 @@ +// +// DetailViewController.m +// iOS UI Test +// +// Created by Jonathan Willing on 4/8/13. +// Copyright (c) 2013 AppJon. 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 |