Closed pbassut closed 9 years ago
Do you have any sample? The code below should work, you should also be able to do it in the storyboard
self.title = @"my title";
I'll try to make a sample now.
@aryaxt I push my viewcontrollers like this:
MenuViewController *menuVC = [self.storyboard instantiateViewControllerWithIdentifier:@"menuVC"];
ProductsViewController *productsVC = [self.storyboard instantiateViewControllerWithIdentifier:@"productsVC"];
[productsVC setResources:result];
SlideNavigationController *navigationController = (SlideNavigationController *)[self.storyboard instantiateViewControllerWithIdentifier:@"mainNavigationController"];
navigationController.enableSwipeGesture = YES;
navigationController.leftMenu = menuVC;
[navigationController pushViewController:productsVC animated:YES];
Is there any problem with this?
No that should work, do you have a title set for the viewcontorller in your storyboard?
@aryaxt in that case the MenuViewController? No, I don't. Only an empty navigation Item.
I had to manually create a navigationBar by using a view on the top of my view's viewcontroller because the SlideMenu doesn't even show de navigationBar.
Before I thought it was the navigationBar but it was only a view. Sorry about that.
Wrap MenuViewController inside a UINavigationCotnroller, and instead of setting the menuVC as leftMenu set the navigationController as your leftMenu.
Or I guess what you did works too
How can I set the title of my viewcontroller using Slide-Menu?
I've tried:
Some of them don't even make much sense, but I tried it anyway.