0
My Left menu вытесняет центральное представление. Это выглядит хуже, чем если вид в центре левого меню. explanation Как я могу настроить его?MMDrawerController настраивает левое меню
My Left menu вытесняет центральное представление. Это выглядит хуже, чем если вид в центре левого меню. explanation Как я могу настроить его?MMDrawerController настраивает левое меню
// MMDrawerController
ViewController * centerViewController = [[ViewController alloc] init];
UINavigationController *centerNavigationController = [[UINavigationController alloc] initWithRootViewController:centerViewController];
ViewController *leftViewController = [[ViewController alloc] init];
UINavigationController *leftNavigationController = [[UINavigationController alloc] initWithRootViewController:leftViewController];
_drawerController = [[MMDrawerController alloc] initWithCenterViewController:centerNavigationController leftDrawerViewController:leftNavigationController];
[leftNavigationController setNavigationBarHidden:YES];
[centerNavigationController setNavigationBarHidden:YES];
[_drawerController setMaximumLeftDrawerWidth:300.0];
[_drawerController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModeAll];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
UIColor * tintColor = [UIColor colorWithRed:29.0/255.0
green:173.0/255.0
blue:234.0/255.0
alpha:1.0];
[self.window setTintColor:tintColor];
[self.window setRootViewController:_drawerController];
[self.window makeKeyAndVisible];
извините, не видел ваше объяснение, MMDrawerController не может позволить leftDrawer покрыть CENTERVIEW, это просто стиль IOS, накройте центр Посмотреть это Android стиль, может быть, вы можете попробовать другой пользовательский интерфейс – PenotyDelPiero