开发者

a problem when pushViewController with UIViewcontroller

开发者 https://www.devze.com 2022-12-18 11:35 出处:网络
my view are fill in back of Navigationbar how can i make it continuous at the buttom of it. here is my code

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

精彩评论

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