a problem when pushViewController with UIViewcontroller
my view are fill in back of Navigationbar how can i make it continuous at the buttom of it.
here is my code
WebViewController *web开发者_Python百科ViewController = [[WebViewController alloc] initWithNibName:@"WebController" bundle:nil];
[[self navigationController] pushViewController:webViewController animated:YES];
[webViewController release];
It looks like it resized properly, but the origin is off. You should try setting the frame of the WebViewController's view:
CGRect frame = webViewController.view.frame;
frame.origin.x = 0;
frame.origin.y = 0;
[webViewController.view setFrame:frame];
精彩评论