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
1
vote
0 answers

How to back to previous view in tab bar?

I have a tab bar controller as the root view, there are 5 tabs. every tab has a view controller. With this situation: When i browse view in tab 1, then click the center tab to show a view, this view has a back button in it's navigation bar, when i…
realtanx
  • 11
  • 4
1
vote
3 answers

How to show selected state of UITabBar Items for SWIFT

The following code in my appDelegate works for Objective-C to show selected state of custom UITabBar Items. Despite my best efforts, I cannot figure out how to translate this code to Swift. Can someone point me in the right…
Mike Hamel
  • 13
  • 1
  • 3
1
vote
1 answer

Adding additional ViewController tabs to TabBarController

I created a new Obj-C "tabbed application" using XCode 6.1.1 on Yosemite. I have read through the documentation and online tutorials about UITabBarController settings. I have tried to adjust TabBarItems, viewControllers array, and whatever else I…
1
vote
1 answer

iPhone dev - number of TabBarItem

I want to create a Tabbar that the number of tab bar items is defined by the user (let say it stores in a variable NumberOfTabBarItem). Is there a way to put tab bar items into some sort of array and display? Thanks!
Brian
  • 235
  • 3
  • 11
1
vote
1 answer

Convert UIView to UIImage without first displaying the UIView?

I am looking for a way to present two rows of text, each differently sized and colored, within each UITabBarItem of my app. For this reason, I am looking for a way to make easy custom TabBarItems whose text can be dynamically updated within the app.…
1
vote
1 answer

How to change tabbaritem image on a button click?

I have a UIButton, which when clicked, will change the tabbaritem image of that view and also, the whole view will have to be replaced with another view... How can i be able to do this ? Please help ! Thanks,
Ashish Gogna
  • 59
  • 2
  • 6
1
vote
2 answers

Title text hugging/kerning + clipping in UITabBarItem

I have a UITabBarController like this: As you can see, the 'Discover' and 'Requests' titles are compressed by high amounts of kerning. They are also slightly clipped at the end of each item title. Is there any way to fix this? P.S. The problem does…
demon9733
  • 1,054
  • 3
  • 13
  • 35
1
vote
1 answer

Weird UITabBar background issue on iPhone6 Simulator, iOS8

Hi I have weird problem on iPhone6, iOS8 in iPhone simulator (unfortunately I don't have actual device to test yet). I have background view whose bottom edge is exactly to top edge of UITabBar 0px overlap, background is in golden colour. This…
Mirko
  • 2,231
  • 2
  • 21
  • 17
1
vote
0 answers

text not displaying in uitabbar

I have code in didFinishLaunching method as per below. - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { myViewController *obj=[[myViewController alloc]initWithNibName:@"myViewController"…
Mrugesh Tank
  • 3,495
  • 2
  • 29
  • 59
1
vote
0 answers

iOS 7 set UITabbarItem as unselected

When a tab bar item is selected, I want to set it such as that it looks like its unselected (i.e, I don't want to the selected tab bar item to have the selected tint color applied to it). Is this possible?
Subhash
  • 165
  • 3
  • 14
1
vote
1 answer

UITabbar without controller

I have a simple app where the only view controller has an outlet to a UITabBar. It also implements UITabBarDelegate and is set as the delegate for the UITabBar: @interface TheMainViewController : UIViewController { IBOutlet…
Etienne
  • 33
  • 1
  • 3
1
vote
1 answer

How to link items from a tabbar item to another viewcontroller

I have a UITabbar and added additional UITab Bar Items. I then want to link (create a segue) to another view controller, but when I drag to create a segue, I do not get the popup menu letting me choose between 'push' and 'modal'. How can I create a…
Fredrik
  • 63
  • 1
  • 8
1
vote
1 answer

iOS tab bar item with no controller associated

I have my own subclass of UITabBarController. I am trying now to add a simple button (UITabBarItem) in the storyboard. The thing is that I don't want to associate a controller with it. An action on that item will simply fire a prompting alert to…
ffarquet
  • 1,263
  • 12
  • 27
1
vote
0 answers

change Text under TabBarIcon

I have a UITabBarController with 5 views. When I click on the tab bar in a ViewController, I have set up in the Attributes Inspector an Identifier like "Featured" because I want the Icon of "Featured" to be in the Tab Bar. But I want only the Icon…
1
vote
2 answers

iPhone Tab bar icon are misaligned - iOS 7

I have an application that was initially built with iOS 4.0, but which is now iOS 7.0 + only. I have a tab bar with 4 icons, and they used to be placed appropriately. But now, they are about 10 pixels higher than where they should be. (See…
invalidArgument
  • 2,289
  • 4
  • 24
  • 35