Questions tagged [uitabbaritem]

The UITabBarItem class implements an item on a tab bar, instances of the UITabBar class. Tab bar items are used to configure the tab bar.

Tab bar items gives the ability to switch between different subtasks, views, or modes. A tab bar operates strictly in radio mode, where one item is selected at a time—tapping a tab bar item toggles the view above the tab bar. There is a way to specify a badge value on the tab bar item for adding additional visual information—for example, the Phone application uses a badge on the item to show the number of new messages. This class also provides a number of system defaults for creating items.

991 questions
0
votes
1 answer

UITabBar.ItemPositioning swift4

I am trying to set the positioning of my items in my tabBar, I want to lower the items towards the item title. Can I use UITabBar.ItemPositioning and if so how? Thank you. How it looks now: class CustomTabBarController: UITabBarController { …
olle
  • 134
  • 3
  • 15
0
votes
1 answer

after change tabBarItem TableViewController looks like black Screen

I have TableViewController with search bar, after update updateSearchResults it work and when I change TabBarItem and come back I have a black screen, may be somebody had this problem? How I understand, I should clear tableview in…
user10224777
0
votes
2 answers

FontAwesome UITabBarItem not displaying correctly

I am trying to create icons for each of my view controllers, but it is creating a question mark block as if it does not understand the image let settings = UINavigationController(rootViewController: SettingsController()) let individual =…
Peter S
  • 827
  • 1
  • 8
  • 24
0
votes
1 answer

Objective-C: Tabbaritem tapped->Method Called-> But WebView not refreshed

Trying to achieve When I tap on the tabbaritem say #2, it will called the method and reload the web view. Issue When I tap on the tabbaritem, the method is called but web view did not reload. Did not load the web view Question If I called the…
Hanz Cheah
  • 761
  • 5
  • 15
  • 44
0
votes
1 answer

Objective-C : Title of tab bar item will not change after login page but works when relaunch from xCode?

I have a Change Language VC that changes the language of the app. If I initially run the app, register and log in. Then immediately I go to the change language VC and hit the change language method. The title of the tab bar item will still remains…
Hanz Cheah
  • 761
  • 5
  • 15
  • 44
0
votes
1 answer

Tab Bar Items change colors

I have tabBar with 5 items. My app start on first item and all has white color. When I tap on another item nothing change - this is clear, but is possible that when I tap on second item all the items change color to black or when I tap on third item…
0
votes
1 answer

How to click UITabBarItem and show new ViewController?

I add a tab bar to view controller manually, this is not a tabBarController, because I only want the tab bar UI, not the tab bar function I want to click on tab bar and show new ViewController, but I cannot do that in storyBoard If I use this…
CL So
  • 3,647
  • 10
  • 51
  • 95
0
votes
1 answer

IOS swift fatal error nil exception when trying to access TabBar

I have the tabBar below and each of those TabBars belongs to it's own specific UIViewController . My issue is with my Home Tab Bar . That TabBar has a TableView if I am in another TabBar item like 'Search' or 'Notification' and go back to my Home…
user1591668
  • 2,591
  • 5
  • 41
  • 84
0
votes
1 answer

Unable to click on more option list in tab bar controller

I have created a tabbar application with 6 tabs. 4 tabs and 1 "more" tab are showing when app launch. and its expected. 2 tab will show when user will click on more option. When I clicked on more option, I am seeing list of 2 tab controllers. When…
VipinYadav
  • 808
  • 4
  • 16
0
votes
1 answer

How to get default font of UITabBarItem?

How to get font default of UITabBarItem. Please help if you can get it. Because I want to repeat with the default value. Font Size UITabBarItem changed that I do not know why. UITabBarItem.appearance().setTitleTextAttributes([NSFontAttributeName:…
0
votes
1 answer

Change TabBarItem text in WindowBased app

I create window based app (call it TabBar). In TabBarAppDelegate I create two UIViewControllers and one UITabBarController. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //…
Tunyk Pavel
  • 2,473
  • 6
  • 31
  • 46
0
votes
0 answers

UITabBar is changing color on screen change

I am workingwith xcode9 and Swift 4. In my application I am using a tab bar. Which looks like this normally. But on few screens as soon as i land it changes the background color and shows something like this. Can someone point out why this…
user1722889
0
votes
1 answer

Variables don't update in UITabBarControllerDelegate

Here is what I'm trying to do: When user clicks the 'Compressors' button, it shows a scroll view with details of compressors (or whatever). And to get back to menu, user clicks the 'More' tab bar item. I've set up a variable first to store…
DeepBlue
  • 591
  • 9
  • 18
0
votes
1 answer

how to stop tabbar items from turning grey when popover appears

I am showing a popover controller in one of my view controller. whenever the popover appears, the active tab bar item turns its color from blue to grey when the popover disappears the color turns back from grey to blue again. I don't want active tab…
0
votes
1 answer

UITabBarItem - Position image separately from title text

I have a UITabBar with 5 UITabBarItems, each containing an image and a title. Currently, the images are positioned centered above the title text. When an item is selected I bold the text, however this causes the positioning of the image to change…