REFrostedViewController
REFrostedViewController copied to clipboard
Slide menu Custom Width
hello
First of all thanks and gratz for the great lib
I want to customize this lib because i dont want the slide menu takes 90% of the screen. Look my screenshoot.
Thanks
If it happens at the first display, see me reply and fix here : https://github.com/romaonthego/REFrostedViewController/issues/30
"To fix that, after created your frostedViewController, call resizeMenuViewControllerToSize with your size and all will going right."
to change size of menu size in REFrostedContainerViewController add at end of viewWillAppear these lines self.frostedViewController.menuViewSize = CGSizeMake(195,self.frostedViewController.menuViewController.view.frame.size.height); [self.frostedViewController resizeMenuViewControllerToSize:CGSizeMake(195,self.frostedViewController.menuViewController.view.frame.size.height)];
in REFrostedViewController : 1 - Line # 83
Change
_automaticSize = YES ;
_limitMenuViewSize = NO; to
_automaticSize = NO; _limitMenuViewSize = YES;
2- Line # 189
Change
self.calculatedMenuViewSize = CGSizeMake(_menuViewSize.width > 0 ? _menuViewSize.width : self.contentViewController.view.frame.size.width,_menuViewSize.height > 0 ? _menuViewSize.height : self.contentViewController.view.frame.size.height);
to
self.calculatedMenuViewSize = CGSizeMake(280,_menuViewSize.height > 0 ? _menuViewSize.height : self.contentViewController.view.frame.size.height);