2015-12-19 45 views
0

正如您在下面看到的,底部的標籤欄上方有一個很薄的灰色條。刪除標籤欄上的額外空間 - Objective-C

有沒有辦法徹底清除它,或使它透明?

謝謝!

enter image description here

編輯:

視圖約束:enter image description here

+0

你可以分享你給予該視圖的約束的屏幕截圖嗎? –

+0

@RKP在我的編輯中,那些是你所指的約束? – jape

回答

0

設置的ShadowImage爲的TabBar作爲[UIImage new]並使backgroound顏色的TabBar作爲視圖的背景顏色。

0

請試試這個代碼IMG名替換您的圖像

UIEdgeInsets insets = UIEdgeInsetsMake(5, 0, -5, 0);; 
img = [img resizableImageWithCapInsets:insets]; 
0

請試試這個代碼只能更換圖片名稱

UIEdgeInsets insets = UIEdgeInsetsMake(5, 0, -5, 0);; 
Yourview = [Yourview resizableImageWithCapInsets:insets]; 

希望這將幫助你很好。

+0

它不是一個圖像,而是一個UIView。有沒有辦法以不同的方式使用你的代碼? – jape