0

以下のコードを確認してください。タブバーと Facebook のスライド メニューを一緒に実装する必要があります。

tabBarController.delegate = 自己;

self.leftController = [[LeftViewController alloc] initWithNibName:@"LeftViewController" bundle:nil];
RightViewController* rightController = [[RightViewController alloc] initWithNibName:@"RightViewController" bundle:nil];

// ViewController *centerController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
FirstViewController *centerController = [[FirstViewController alloc] initWithNibName:@"FirstView" bundle:nil];
self.centerController = [[UINavigationController alloc] initWithRootViewController:centerController];
IIViewDeckController* deckController =  [[IIViewDeckController alloc] initWithCenterViewController:self.centerController
                                                                                leftViewController:self.leftController
                                                                               rightViewController:rightController];
deckController.rightSize = 100;

self.window.rootViewController = deckController;

// Add the tab bar controller's view to the window and display.
[self.window addSubview:tabBarController.view];
4

1 に答える 1