uitabbar

    0熱度

    1回答

    我有一個UITabBar 5個選項卡。 我設置了一個「unselectedImage」到tabBarItem的image屬性和「selectedImage」到tabBarItem的selectedImage屬性。 「selectedImage」是一個帶有漸變的圖像,但它以tabBar.tintColor的顏色顯示。 那麼我怎樣才能取消tintColor並使原始圖像呈現(而不是用tintColor着

    1熱度

    1回答

    我在我的應用中顯示UITabBar,並試圖將accessibilityIdentifier分配給按鈕。要做到這一點,我用下面的行中的每個我的視圖控制器實例化: viewController.tabBarItem.accessibilityIdentifier = @"ViewControllerID"; 這些viewControllers所有被添加到UITabBar像這樣: NSMutable

    0熱度

    2回答

    與標題狀態一樣,如何以編程方式將accessibilityIdentifier設置爲UITabBar的按鈕?我目前正在嘗試設置UITabBarItem的accessibilityIdentifier,然後將其添加到標籤欄,但似乎沒有進行到按鈕。 如何在頁面上顯示的實際按鈕上設置accessibilityIdentifier?

    0熱度

    1回答

    登錄後我的用戶界面的初始顯示在IOS 9工作正常與所述的UITabBarController顯示所有圖標適當但在IOS 10有多達5明顯的延遲 - 10秒無日誌中的任何錯誤。 我已經發布了一個錯誤,以蘋果ID- 29127274 解決方法是如下... -J

    1熱度

    1回答

    我很難在tvOS上獲得具有完全透明背景的UITabBar:我總是會發白背景。 我嘗試了以下(設置背景顏色清晰,背景圖像到UIImage),但沒有任何工作。 var appearanceTabBar = UITabBar.appearance() appearanceTabBar.barTintColor = UIColor.clear appearanceTabBar.shad

    2熱度

    2回答

    我都試過線波紋管,但是這一切導致[UITabBar setUnselectedItemTintColor:]:無法識別的選擇發送到實例 [self.tabBar setUnselectedItemTintColor:[UIColor blackColor]]; [[UITabBar appearance] setUnselectedItemTintColor:[UIColor blackColo

    2熱度

    2回答

    在viewDidLoad我試過以下更新我的UITabBar的背景或「barTintColor」。我可以使用objective-c通過使用[[UITabBar appearance] setBarTintColor:[UIColor blackColor]];來完成此操作。 我已經試過: UITabBar.appearance().barTintColor = UIColor.white

    1熱度

    2回答

    其實我有一個自定義TabBarController和我需要設置badgeValue單獨tabbaritem在最初那個自定義tabar加載與標籤欄項目的索引路徑。 [[self navigationController] tabBarItem].badgeValue = @"3"; 我上面的代碼用於該UIViewcontroller但只有當我點擊標籤欄項目表現出來的。 我也試過custom ta

    1熱度

    2回答

    我正在研究UITabBar應用程序。 我想更改選定項目顏色與 [[UITabBar appearance] setTintColor:[UIColor redColor]] 這工作,直到我想設置的TabBar的背景顏色與 [[UITabBar appearance] setBarTintColor:[UIColor blueColor]] 那麼酒吧是藍色的,但高亮項目是灰色的。 [[UIT

    0熱度

    1回答

    我試圖在之前進行搜索,但找不到任何解決方案來解決我的問題。 我想更改TabBar的高度,以覆蓋舊的TabBar。 我知道一個可能的解決方案是創建一個UIViewController子類,並從頭開始或sottoclassare UITabBar,但我想試試這種方式,我不明白爲什麼不工作。 import UIKit class NewTabBarController: UITabBarContro