Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Demo off a constrictive constrainSplitPosition delegate

  • Loading branch information...
commit e9023018fbc10a8f31db5949c5889d5fa909c9eb 1 parent 7dfc2d8
Edward Rudd urkle authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  Classes/DetailViewController.m
2  Classes/DetailViewController.m
View
@@ -118,6 +118,8 @@ - (void)splitViewController:(MGSplitViewController*)svc willMoveSplitToPosition:
- (float)splitViewController:(MGSplitViewController *)svc constrainSplitPosition:(float)proposedPosition splitViewSize:(CGSize)viewSize
{
//NSLog(@"%@", NSStringFromSelector(_cmd));
+ if (proposedPosition < 200) return 200;
+ if (proposedPosition > 500) return 500;
return proposedPosition;
}
Please sign in to comment.
Something went wrong with that request. Please try again.