REFrostedViewController icon indicating copy to clipboard operation
REFrostedViewController copied to clipboard

Slide menu Custom Width

Open cliffgr opened this issue 10 years ago • 3 comments

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

screen shot 2015-01-29 at 9 59 43 am

cliffgr avatar Jan 29 '15 08:01 cliffgr

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."

bill350 avatar Apr 10 '15 11:04 bill350

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)];

dimohamdy avatar Dec 21 '15 13:12 dimohamdy

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);

saad-ansari avatar Nov 17 '16 09:11 saad-ansari