UINavigationBar *bar = [self.navigationController navigationBar];
CGFloat navBarHeight = 35.0f;
CGRect frame = CGRectMake(0.0f, 20.0f, 320.0f, navBarHeight);
[bar setFrame:frame];
IOS 调整UINavigationBar高度
点赞
收藏
IOS 调整UINavigationBar高度
UINavigationBar *bar = [self.navigationController navigationBar];
CGFloat navBarHeight = 35.0f;
CGRect frame = CGRectMake(0.0f, 20.0f, 320.0f, navBarHeight);
[bar setFrame:frame];