开发者

problem in passing the values in popviewcontroller

{    

 seViewController *seView = [[[seViewController alloc] initWithNibName:@"seViewController" bundle:nil] autorelease];

[[self navigationController] pushViewController:seView animated:YES]; 
[seView insert:myString];}   

I am passing the seView in pushViewController its working correctly. But how to pass the seView in popViewController. 开发者_如何学JAVA


From the Apple Reference

popViewControllerAnimated:

Pops the top view controller from the navigation stack and updates the display.

- (UIViewController *)popViewControllerAnimated:(BOOL)animated

Parameters

animated

Set this value to YES to animate the transition. Pass NO if you are

setting up a navigation controller before its view is displayed.

Return Value

The view controller that was popped from the stack. Discussion

This method removes the top view controller from the stack and makes the new top of the stack the active view controller. If the view controller at the top of the stack is the root view controller, this method does nothing. In other words, you cannot pop the last item on the stack.

In addition to displaying the view associated with the new view controller at the top of the stack, this method also updates the navigation bar and tool bar accordingly. In iOS 3.0 and later, the contents of the built-in navigation toolbar are updated to reflect the toolbar items of the new view controller.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜