2

Hi I am a newbie in iOS

In my project I didn't want to use a Navigation Bar because of the tint effect, so I used a container view to create something similar except for the back button I used an image with a button on the back.

I have used a Container View(connected to a Navigation Controller) to include a label and a button with an image on top of that button. I want the view to go back to the previous view when I click the button (the one inside the container view's navigation controller). I tried the usual [self.navigationController popViewControllerAnimated:YES]; but with no result. How do I execute this task?

4

2 に答える 2

-1

UINavigation Controller に接続するためにプッシュするビュー。アプリ ナビゲーション ベースのアプリであることを明確にしてください。そうでない場合は、App Delegate に追加してください。

ViewController *ViewController = [[[ViewController alloc] initWithNibName:@"ViewController" bundle:nil] autorelease];
self.navigationController = [[[UINavigationController alloc] initWithRootViewController:ViewController] autorelease];
于 2013-08-07T07:12:11.173 に答える