Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save mikeabdullah/82ac2887cfc1cda095ad to your computer and use it in GitHub Desktop.

Select an option

Save mikeabdullah/82ac2887cfc1cda095ad to your computer and use it in GitHub Desktop.

Revisions

  1. mikeabdullah revised this gist Dec 12, 2014. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion MainViewController.m
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,6 @@
    - (void)encodeRestorableStateWithCoder:(NSCoder *)coder {
    [super encodeRestorableStateWithCoder:coder];
    [coder encodeObject:self.contentViewController forKey:@"contentViewController"];

    [coder encodeObject:self.contentViewController
    forKey:@"contentViewController"];
    }
  2. mikeabdullah created this gist Dec 12, 2014.
    4 changes: 4 additions & 0 deletions MainViewController.m
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    - (void)encodeRestorableStateWithCoder:(NSCoder *)coder {
    [super encodeRestorableStateWithCoder:coder];
    [coder encodeObject:self.contentViewController forKey:@"contentViewController"];
    }