Create a gist now

Instantly share code, notes, and snippets.

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