[英]navigation bar custom height
我想刪除狀態欄到導航欄的距離。 怎么做?
if ([self.navBar respondsToSelector:@selector(setBackgroundImage:forBarMetrics:)])
{
[self.navBar setBackgroundImage:[UIImage imageNamed:@"bar-top"]
forBarMetrics:UIBarMetricsDefault];
}
嘗試這個:
self.navigationController.navigationBar.frame.size.height
或者您可以創建您的自定義商品。
要么
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.