Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Last active August 29, 2015 14:11
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeabdullah/82ac2887cfc1cda095ad to your computer and use it in GitHub Desktop.
Save mikeabdullah/82ac2887cfc1cda095ad to your computer and use it in GitHub Desktop.
Encoding child view controllers in custom container
- (void)encodeRestorableStateWithCoder:(NSCoder *)coder {
[super encodeRestorableStateWithCoder:coder];
[coder encodeObject:self.contentViewController
forKey:@"contentViewController"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment