tabbar

iPhone unread counts on tabbar

时间秒杀一切 提交于 2019-12-07 01:50:25
问题 Which is the best way to implement on Cocoa Touch the unread counts on a icon on a TabBar? I want to mimic the SMS or Mail application behavior, showing the unread message count to the user of my application, with a red dot containing a number. 回答1: The property you're looking for is called the badge. You set it by doing something like: self.tabBarItem.badgeValue = @"1"; 回答2: Have you looked at: setApplicationBadgeNumber? [[UIApplication sharedApplication] setApplicationBadgeNumber:int]; 回答3:

Passing data between Tabs using delegate not working

被刻印的时光 ゝ 提交于 2019-12-06 14:57:17
I want to pass data from second tab to first tab using delegates.But delegate method not triggered.here is the code (I m using storyboard) in SecondViewController.h #import <UIKit/UIKit.h> @class SecondViewController; @protocol SecondViewControllerDelegate <NSObject> -(void) sliderValueDidChanged: (SecondViewController *)controller data:(float) sliderValue; @end @interface SecondViewController : UIViewController{ __weak id<SecondViewControllerDelegate> delegate; } - (IBAction)sliderPressed:(id)sender; @property (weak, nonatomic) IBOutlet UISlider *mySlider; @property(weak,nonatomic) id

Creating a Custom Tab Bar

Deadly 提交于 2019-12-06 13:18:43
I want to create a custom tab bar at the top. Just like 9gag. Do you know a place where i can learn how to do it? (documentiation or video tutorial) Thanks 9gag custom tab bar A work around which I implemented. Create a view to have the custom tab bar. let tabView = UIView(frame: CGRect(x: 0, y: 0, width: self.view.frame.size.width, height: 60)) tabView.backgroundColor = UIColor(red: 45/255, green: 58/255, blue: 114/255, alpha: 1) self.view.addSubview(tabView) Depending on the number of buttons, decide the button size and add them as subview.(Taking 2 here) firstButton = UIButton(type: .Custom

Custom Tab bar in Android

我们两清 提交于 2019-12-06 09:36:00
Is it possible to customize tab bar in android? Customize in the sense, like in iPhone, the tab bar is at the bottom of the screen; in Android, can we place the tab bar at the bottom and its content on top of it? Herry Yes It is Possible to make custom Tab Bar in android like as in iphone you can get that from link . visit here 来源: https://stackoverflow.com/questions/3911887/custom-tab-bar-in-android

ActivityGroup is Deprecated

て烟熏妆下的殇ゞ 提交于 2019-12-06 02:31:44
问题 I am making android application containing three tabs.. On third tab there is login screen.. when i click on login button ...i want to replace the activity with activity containing list view and logout button.... Previously i was using Activity Group to replace the activity..But activity Group is now deprecated.. Now how can i replace the activity under third tab?? I am using these code Intent intent = new Intent(MyApp.this, LoginPage.class); replaceContentVieww("activity4", intent); public

flex 4 tabbar - disable tab

眉间皱痕 提交于 2019-12-05 13:55:30
is there a common way to disable a tab of a spark tabbar component in flex 4? with the mx tabnavigator component you can just disable the content corresponding to the tab and the tab is also disabled then. but doing this with the spark tab bar component disables just the content not the tab. here is my simple example: <mx:TabNavigator x="122" y="155" width="200" height="200"> <s:NavigatorContent label="Tab 1" width="100%" height="100%"> <s:Label text="Label1"/> </s:NavigatorContent> <s:NavigatorContent label="Tab 2" width="100%" height="100%" enabled="false"> <s:Label text="Label2"/> </s

Are there any Tab Bar events for notifying when someone hides/shows the Tab Bar?

青春壹個敷衍的年華 提交于 2019-12-05 07:26:34
I have a Nav controller inside a custom subclass of Tab Bar controller that i created. I want to know from within the (custom) Tab Bar whenever one of the displayed controllers attempts to hide or show the Tab Bar. (for example when pushing a VC that has its hidesBottomBarWhenPushed=YES onto the Nac controller). In short i want to be notified of events hiding/showing the Tab Bar but could not find anything in Apple's reference. I tried looking at UITabBar, UITabBarDelegate, UITabBarController, and UITabBarControllerDelegate but all seem to only provide functionality related to the tab bar

How to create unselected indicator for tab bar in Flutter

别等时光非礼了梦想. 提交于 2019-12-05 05:42:40
I created a custom indicator for tab bar using Decorator. I want to create a unselected indicator for not selected tabs in tab bar. I did a container with custom decoration but current selected indicator draws behind container decoration. new TabBar( labelColor: Colors.black, unselectedLabelColor: Colors.grey, indicator: new CustomTabIndicator(), tabs: [ new Container(decoration: new CustomTabInactive(),child: Tab(icon: Icon(Icons.person )))]) tab bar with unselected indicator Instead of using container in tabs, try this (wrapping the TabBar with container and providing bottom border Container

How to segue from UIButton to a Tab Bar Item?

偶尔善良 提交于 2019-12-04 18:39:59
I have an app with a tab bar, which contains 5 tabs. I decided to have a "Home screen" instead of opening the app directly in the first tab. My home screen will contain a welcome message AND 5 buttons to segue directly to the wanted tab. Example: the 4th button will go to the 4th tab. After clicking one button, the home screen should never be seen again. The navigation mode will by the tab bar. My Home View Controller 5 buttons and a reference to the Tab Bar Controller, to pass the button clicked. The Tab Bar Controller ( @interface TabBar : UITabBarController <UITabBarControllerDelegate> )

ActivityGroup is Deprecated

∥☆過路亽.° 提交于 2019-12-04 09:25:59
I am making android application containing three tabs.. On third tab there is login screen.. when i click on login button ...i want to replace the activity with activity containing list view and logout button.... Previously i was using Activity Group to replace the activity..But activity Group is now deprecated.. Now how can i replace the activity under third tab?? I am using these code Intent intent = new Intent(MyApp.this, LoginPage.class); replaceContentVieww("activity4", intent); public void replaceContentVieww(String id, Intent newIntent) { // TODO Auto-generated method stub View view =