cost 390 ms
如何為不是 InitialViewController 的視圖控制器實現 tabBarController?

[英]How can you implement tabBarController for View Controllers that are not the InitialViewController?

所以如果你想把初始視圖controller做成tab bar,你只要做一個Tab Bar Controller,拖動連接到view controller,把Tab Bar Controller設置為初始視圖controller。 但是說在這些標簽欄之后,您當前通過按下按鈕轉到一個名為主頁的視圖 c ...

如何檢測 UITabBarController 中的選項卡數量何時隨方向發生變化?

[英]How do I detect when the number of tabs changes on orientation in UITabBarController?

在 iPhone 13 pro max 上,縱向顯示 5 個標簽,橫向顯示 8 個標簽。 我想檢測標簽數量何時發生變化(例如:8 到 5 或 5 到 8)。 有時,新選項卡在 deviceOrientationDidChange 之后呈現,其中tabBar.items?.count仍然指向舊值。 ...

在標簽 Controller 內導航

[英]Navigating within Tab Controller

我對 Xcode 和 Swift 還很陌生(盡管我對其他語言有很多經驗),並且遇到了一個相當微不足道的問題。 我設置了一個進入應用程序主頁的基本登錄/注冊頁面(選項卡視圖控制器),但我希望每個選項卡都有一個唯一的導航欄。 在第一個選項卡(主視圖控制器)中,我希望能夠注銷(一直回到登錄屏幕)並單擊“+ ...

將通過故事板制作的 UIViewController 添加到 TabBarController.setViewControllers

[英]Add UIViewController made via storyboard to TabBarController.setViewControllers

我無法理解使用 setViewControllers 方法將我的 HomeViewController (UIViewController) 添加為我的 homeTabBarController (UITabBarController) 中的選項卡之一所需的基礎知識。 我試過初始化它並簡單地將它作 ...

從 UITabBar 獲取 UIImageView

[英]Get UIImageView from UITabBar

如何從UITabBar特定項目獲取 imageView。 從下面的代碼中突出顯示進入特定的部分視圖。 我需要為 CoachMark 突出顯示 More Tab only UIImageView 。 如何從 UITabBar 獲取 UIImageView 的值? ...

如何在 ios swift 中的 tabBar 項之間動態分配空間

[英]How to give space dynamically between tabBar items in ios swift

我有一個包含 4 個選項卡項的選項卡欄,但我必須在運行時在選項卡項之間添加空格。 當用戶單擊第二個、第三個和第四個項目中的任何一個時,加號按鈕將添加到項目的中間,但它看起來非常接近項目 所以我在運行時需要在各個項目之間留出很小的空間。 我將該按鈕添加到UITabBarController class ...

在黑屏中展開 segue 結果? 帶有嵌入式 VC 和 segues 的 UITabBarController

[英]Unwind segue results in black screen? UITabBarController with embedded VCs and segues

我的應用程序具有以下層次結構: UITabBarController,第一個選項卡是 BrowseVC(另一個 UIViewController)。 BrowseVC 有一個 SegmentedControl,每個控件都會顯示一個版本的 PersonVC(另一個 VC 在 ContentVi ...

UITabBar分為兩部分

[英]UITabBar is divided into two part

我想知道為什么那個白色部分出現在我的 tabBar 上方,我想刪除它。 主視圖就像下圖中的代碼(我也添加了代碼塊),我設置了我的 UITabBar().appearance().backgroundColor。 我在我的 TabBarItem 中設置內容。 我的代碼 我想知道什么是“白色部分”並嘗試 ...

如何在iOS Swift中將數據從ViewController傳遞給UITabBarController?

[英]How to pass data from ViewController to UITabBarController in iOS Swift?

我一直在嘗試以編程方式將數據從 ViewController 傳遞到 UITabBarController。 這是代碼初始 ViewController UITabBarConroller 代碼: 我的問題是我試圖從初始 viewController 接收數據到 UITabBarControll ...

捕獲未選擇的 UITabBarItem 的快照?

[英]Capture snapshot of unselected UITabBarItem?

賞金將在 5 小時后到期。 此問題的答案有資格獲得+50聲望賞金。 MegaManX希望引起對這個問題的更多關注。 我正在為應用程序編寫一些教程代碼,並想制作未選擇的標簽欄項目的屏幕截圖。 這是我到目前為止編寫的代碼: 主要 controller: 有趣的是,當selectedIndex為 0 ...

保持用戶登錄 swift

[英]Keep User Logged In in swift

我開發了應用程序,我首先使用登錄系統打開 UIViewController,在 viewDidLoad 中我檢查用戶是否像這樣登錄(使用 firebase) 我的配置放克看起來像: 所以,這是我的問題。 在配置 function 中,我正在顯示UITabBarController()並且如果用戶登 ...

選項卡欄項目在單擊之前不會顯示

[英]Tab bar items not showing up until clicked

我正在嘗試創建一個帶有導航 controller 的標簽欄 controller。我正在嘗試以編程方式實現這一點。 這是我的場景委托中的 willConnectTo 方法: 這是 2 個視圖控制器: 下面的屏幕截圖顯示了應用程序在我運行時的樣子: 但是當我點擊標簽欄項目時,項目顯示: 正如您在第 ...

UITabBarController 外觀只允許我設置一次

[英]UITabBarController Appearance Only Allows Me to Set It Once

這是問題所在: 我有一個我編寫的擴展,允許在標准 UIKit 應用程序中簡單自定義選項卡欄。 問題是它工作正常 - 一次。 隨后更改外觀的嘗試將被忽略。 如果能告訴我我做錯了什么,我將不勝感激。 下面是擴展。 如果我調用setColorsTo(normal:, selected:, disabled ...

返回到具有不同設備方向的視圖控制器 (UITabBarController) 時布局無法更新

[英]Layout fails to update when going back to view controller with different device orientation (UITabBarController)

我的應用程序有一個帶有 5 個選項卡的主 UITabBarController(每個選項卡都是一個 UINavigationController)。 選項卡包含各種 UI 元素,例如 UITableViews(帶有和不帶有自定義單元格)、UISegmentedControls 等。 當屏幕上顯示視圖 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM