I'm trying to figure out programmatically if a particular tab bar item in my app has a badge.
While I'm debugging, visually, I can plainly see that it does. But when I run this code in the viewController in question:
UITabBarItem* thisVCsTabBarItem = self.tabBarItem;
NSString* badgeValue = thisVCsTabBarItem.badgeValue;
...badgeValue ...
I have a UITabBar Controller that has a UINavigation for each of the UITabBaritems. The problem is that if you drill down in a navigation then press the UITabBaritem you are currently in it goes to the first view that has been pushed on the stack.
My question is how would i change it so that this feature is disabled or changed to the 2...
My app has 6 menu items, so the OS shows the first 4, then shows a "More" item that links to a screen where the user can select the other two.
My problem is that I want to show a badge on the More item so that the user knows that one of the menu items that is hidden needs their attention. (It's clear to our users which hidden item the b...
Is there a way to use UITabbaritem as a UIButton?
I am trying to make a Tabbar that its items don't change the view. Just want them to do simple actions in the same view controller.
Thanks.
...
Hello.
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 <UITabBarDelegate>
{
IBOutlet UITabBar *theTabBar;
}
I implemented the following method Which gets called wh...
Hi,
I have 4 tabs in my iphone application. When user will click a button in tab-1, I want to move/switch user to another tab suppose tab-2.
How to do that?
Thanks in advance.
-Ruchir.
...
Is it possible to change the font size of tabs?
...
Is it possible to have a multiline (2-line specifically) UITabBarItem title? I have some long strings that don't fit well on one line.
...
Try as I might, I cannot get this to work. Here is my latest attempt. Can someone clue me in as to why this does not work?
In a method which is called by my view controller's init method:
UIImage *image = [UIImage imageNamed: @"window22.png"];
UITabBarItem *item = [[UITabBarItem alloc] initWithTitle: @"Some Title" image: image tag: 0...
Hi All,
I currently have an app that is a tab bar style app and supports rotation. Everything is great until you hit the tab bar when the device is in landscape and the original view is reloaded and placed back on screen. There is a lot of space and the overall appearance doesnt look good. Is there a way to disable this tab bar item fro...
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!
...
hi
i try to customize a uitabbar
i extended uitabbar item and now have a customized image in it but i cant get rid of the rounded edges.
code:
@interface CustomTabBarItem : UITabBarItem
{
UIImage *customHighlightedImage;
}
@property (nonatomic, retain) UIImage *customHighlightedImage;
@end
@implementation CustomTabBarItem
@s...
Hi, I'm stack on refreshing view in TabBar. The UIView is read only first time I pressed the TabButton and does not "viewDidLoad" next time. I want to refresh UITableView every time I pressed the button.
Thank you!
...
Hi,
the last days I tried to create an UITabBarItem as UIImage. But I only get a white square. I tried to use a png 8, png 24, gif and jpg. The image will be fond becaus if I change the image to a bigger one the white square also will be bigger.
This is my Code:
UIBarButtonItem *selectFeed_3 = [[UIBarButtonItem alloc]
...
Hi,
Is it possible to have the icons in a TabBar and / or the "More navigation controller" be in colors other than grey and black? I tried changing the color of the icon I set for the view controller using UITabBarItem's
- (id)initWithTitle:(NSString *)title image:(UIImage *)image tag:(NSInteger)tag
method.
My client thinks the inte...
I'm trying to programmatically switch tabs. I tried to do this using the following calls:
tabBarController.selectedIndex = 2;
tabBarController.selectedViewController = checkinViewController;
In both cases, This is what I get:
This is what I want:
Any clue?
...
Hi
I wish to have it so the view controller's title is different to the tab bar item's title.
I have tried the following, inside viewDidLoad
[self setTitle:@"My title"];
[[self tabBarItem] setTitle:@"Search"];
But the call to the second function doesn't seem to work
...
hi, i am using a tab bar in a view controller and in "viewDidLoad" method i declare it:
normalView =[[NormalViewController alloc] initWithSigne:[[normalAstro objectAtIndex:signIndex]objectForKey :@"name"] andDescription:[[normalAstro objectAtIndex:signIndex]objectForKey :@"description"]] ;
[controllers addObject:normalView];
chine...
The main thing that I'd like to change is the tint of the UINavigationBar that appears in the "More" item of a UITabBar. I've done this for other NavigationControllers in normal items, but I haven't found where the one in the More item is defined.
...
Hi,
I have some problems using UITabBarControllers.
All the examples that I read use them from the appDelegate.
Here is what I want to perform.
I have a tableView that displays a list of items.
By clicking on a item, I need to push a view that contains a UITabBarController with 2 barItems (and pass a class object that contains the data o...