UINavigationBar *bar = [self.navigationController navigationBar];
CGFloat navBarHeight = 35.0f;
CGRect frame = CGRectMake(0.0f, 20.0f, 320.0f, navBarHeight);
[bar setFrame:frame];
转载于:https://my.oschina.net/simple2012/blog/92283
本文介绍了一种在iOS应用中调整UINavigationBar高度的方法。通过获取当前导航控制器的导航栏,然后设置其frame属性,可以将导航栏的高度调整为所需的尺寸。
3616

被折叠的 条评论
为什么被折叠?



