Retired Document
Important: This document may not represent best practices for current development. Links to downloads and other resources may no longer be valid.
TableSearch/APLDetailViewController.m
/* |
Copyright (C) 2013-2015 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
Detail view controller for the application. Implemented to support state restoration. |
*/ |
#import "APLDetailViewController.h" |
@implementation APLDetailViewController |
static NSString *ProductTitleKey = @"ProductTitleKey"; |
- (void) encodeRestorableStateWithCoder:(NSCoder *)coder |
{ |
[super encodeRestorableStateWithCoder:coder]; |
[coder encodeObject:self.title forKey:ProductTitleKey]; |
} |
- (void) decodeRestorableStateWithCoder:(NSCoder *)coder |
{ |
[super decodeRestorableStateWithCoder:coder]; |
self.title = [coder decodeObjectForKey:ProductTitleKey]; |
} |
@end |
Copyright © 2013 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2013-05-23