2012-07-13 75 views
0

我實現了一個像滑動菜單一樣的Facebook。當我滑動導航欄時,「設置」視圖將出現在下方。在另一個視圖中呈現modalViewController

問題是,當我嘗試從設置視圖呈現模態視圖。我試圖實現一個反饋系統(MFMailComposeViewController),但是如果我從下面的設置視圖中顯示它,一半模態視圖將被覆蓋視圖(RootView控制器)阻止。

我能做些什麼來解決這個問題?

在此先感謝

masterViewController = [[MatchTable alloc] initWithNibName:@"MatchTable" bundle:nil]; 
self.navigationController = [[UINavigationController alloc] initWithRootViewController:masterViewController]; 

self.window.rootViewController = self.navigationController; 
[self.window makeKeyAndVisible]; 

Settings *sideMenuViewController = [[Settings alloc] initWithNibName:@"Settings" bundle:nil]; 

// make sure to display the navigation controller before calling this 
[MFSideMenuManager configureWithNavigationController:self.navigationController sideMenuController:sideMenuViewController]; 
+1

呈現從modalView您窗口將解決這個問題。不要以任何觀點來呈現它。 – 2012-07-13 08:25:59

+0

感謝您的回覆。我會怎麼做呢?謝謝 – BlackMouse 2012-07-13 10:00:01

回答

2

嗯,我做到了像這樣給它一種動畫effect..You可以選擇你喜歡的任何其他作用:

 [UIView beginAnimations:@"Flip" context:nil]; 
     [UIView setAnimationDuration:1.0]; 
     [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; 
     [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:appDelegate.window.rootViewController.view cache:YES]; 
     [appDelegate.window.rootViewController.view addSubview:@"Your View Object"]; 
     [UIView commitAnimations]; 
相關問題