开发者

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];

a problem when pushViewController with UIViewcontroller


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];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜