2011-01-04 4 views
0

rootViewControllerから、320x50サイズのUIViewを2つのボタンでスワイプします。UIViewからUIViewControllerをポップする方法は?

UIViewのボタンをクリックすると、UIViewControllerをポップする方法は?

ありがとうございました。

+0

ナビゲーションコントローラを作成し、私はrootViewControllerへの通知はへrootViewControllerを聞かせてNSNotificationCenter.Then使用投稿します別のUIViewControllerをポップします。 – fannheyward

答えて

0

//私はUIViewの中ボタンをクリックし、別のway.Whenでこれを解決した

UINavigationController *navController = [[UINavigationController alloc] 
    initWithRootViewController:viewController]; 

// show the navigation controller modally 
[youCurrentNavigationController presentModalViewController:navController animated:YES]; 
関連する問題