Viewdeck遇到小問題。如何使用ViewDeck導航欄推送視圖
我想推導我的導航欄與導航欄。我現在正在做(代碼如下),但它沒有導航欄。
[self.viewDeckController closeLeftViewBouncing:^(IIViewDeckController *controller)
{
DataViewController *DataController = [[DataViewController
alloc] initWithNibName:@"DataViewController" bundle:nil];
DataController.modalPresentationStyle = UIModalPresentationFormSheet;
DataController.ID = @"hello";
self.viewDeckController.centerController = DataController;
}];
也試過:
UIViewController *viewController = [[DataViewController alloc] init];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewController];
navigationController.modalPresentationStyle = UIModalPresentationFormSheet;
DataViewController *DataController = [[DataViewController
alloc] initWithNibName:@"DataViewController" bundle:nil];
DataController.modalPresentationStyle = UIModalPresentationFormSheet;
DataController.ID = @"hello";
self.viewDeckController.centerController = DataController;
謝謝,這幫了我一大堆。 – kevinl