Closed bimawa closed 10 years ago
I don't understand your use case. You don't want the menuViewController
'sview
to be 100% slideMenuController
'sview
height and specified menuWidth
width ?
Yes, but it trouble in iOS7. If i initialize mainViewController
with custom frame, for example y:20 for give space for status bar, and after menuViewFrameAccordingToCurrentSlideDirection
it reframe my origin.y in mainViewController
. :(
You shall not reframe your mainViewController
's view
to handle the status bar frame in iOS 7. Instead I suggest you to reframe its subviews
. Your view controllers are not supposed to update their view
's frame
, it is the responsibility of the container view controller.
Ok thx a lot for comment.
@nverinaud i need help a bit. in code below i make init NVSlideMenuController
and GFMainMenuViewController
is UITableViewController it has tableView(some self.view) in up level.
GFMainViewController *mainViewController = [GFMainViewController new];
GFMainMenuViewController *menuViewController = [GFMainMenuViewController new];
NVSlideMenuController *nvSlideMenuController = [[NVSlideMenuController alloc] initWithMenuViewController:menuViewController andContentViewController:mainViewController];
[nvSlideMenuController setMenuWidth:260];
in menuViewController
i need move tableView
in subview
?
I would suggest to do a normal UIViewController
subclass with a UITableView
subview.
I think this is not the right solution? looks like the stub...
Hum…you could also try to tweak UIViewController
's edgesForExtendedLayout
and extendedLayoutIncludesOpaqueBars
so that the status bar does not overlap your table view.
i try it too. its not working, becouse in iOS 7 starting pont for x,y its left-top edge under statusBar.
Ok, the right way is to make GFMainMenuViewController
be a subclass of UIViewController
and add an UITableView
as an outlet and subview.
Ok i understand you. Thx a lot for help. I will do as you advise.
If in menuController i set specific frame for it, openMenuAnimated, and others, methods reframed my view.