Skip to content

Instantly share code, notes, and snippets.

@kylestew
Created February 28, 2012 00:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kylestew/1928187 to your computer and use it in GitHub Desktop.
Save kylestew/1928187 to your computer and use it in GitHub Desktop.
JTRevealSidebar Sample Snippet
- (UIView*)viewForLeftSidebar {
if (!_sampleViewController) {
_sampleViewController = [[UISampleViewController alloc] init];
CGRect viewFrame = self.navigationController.applicationViewFrame;
_sampleViewController.delegate = self;
_sampleViewController.view.frame = CGRectMake(0, viewFrame.origin.y, kSidebarWidth, viewFrame.size.height);
_sampleViewController.view.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleHeight;
}
return _sampleViewController;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment