
UITabBarController 标签控制器
小手一背爱谁谁
这个作者很懒,什么都没留下…
展开
-
iOS 横屏启动时页面错乱解决方案
在控制器调用恢复状态栏事件#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. [self restoreStatusBarOrientation];}原创 2020-12-04 16:22:39 · 1150 阅读 · 0 评论 -
IOS 解决在iPad中UITabBarController文字图片为横排显示问题
#import <UIKit/UIKit.h>NS_ASSUME_NONNULL_BEGIN@interface UITabBarController (TabButtonType)//- (UITraitCollection *)traitCollection;@endNS_ASSUME_NONNULL_END#import "UITabBarContro...原创 2019-09-02 17:18:03 · 1086 阅读 · 1 评论 -
iOS tabBar控制器的简单使用
- (void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; [self setMoRenTabBar:self];}- (void)setMoRenTabBar:(UITabBarController *)tabBarController{ // tab主题色 tabBa...原创 2019-02-16 11:17:17 · 532 阅读 · 0 评论 -
iOS 加载xib页面顶部被遮挡问题
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view from its nib. // 方法一 if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:...原创 2017-03-16 11:09:57 · 1911 阅读 · 1 评论 -
iOS 控制器跳转动画
/** 控制器跳转动画 */+(void)tiaoZhuanDongHua:(NSString *)type { CATransition *animation = [CATransitionanimation]; //设置运动轨迹的速度 animation.timingFunction =UIViewAnimationCurveEa原创 2017-03-22 14:31:50 · 342 阅读 · 0 评论 -
iOS 去掉tabBar.item的角标
[self.tabBarController.tabBar.itemsobjectAtIndex:2].badgeValue =nil;原创 2016-12-23 12:49:45 · 1906 阅读 · 0 评论 -
iOS 关闭UITabBarController双击返回根控制器
UITabBarControllerDelegate>//接受tabbar代理方法self.delegate =self;// 调用代理方法- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController原创 2016-11-15 11:32:49 · 594 阅读 · 0 评论 -
iOS tabBarItem 改变文字大小颜色
self.tabBarController.tabBar.backgroundColor = [UIColor whiteColor]; self.tabBarController.tabBar.tintColor = [UIColor colorWithRed:0.000 green:0.800 blue:0.800 alpha:1.000]; //不透明 self原创 2016-05-18 15:06:05 · 469 阅读 · 0 评论 -
ios 隐藏tabbar轻松实现
// 底部标签栏跳转隐藏 返回显示// 视图将要显示时候设置为显示标签栏//1.设置self.tabBarController.tabBar.hidden=YES; self.tabBarController.tabBar.hidden=YES;//2.如果在push跳转时需要隐藏tabBar,设置self.hidesBottomBarWhenPushed=YE...原创 2016-04-19 11:28:29 · 3201 阅读 · 0 评论 -
iOS UITabBar的隐藏显示
// 是否隐藏 方法1self.hidesBottomBarWhenPushed = YES;// 是否隐藏 方法2- (void)hidesTabBar:(BOOL)hidden{ [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:0];原创 2016-04-14 16:59:29 · 448 阅读 · 0 评论 -
iOS 徽标角标和tabbar角标
UITabBarItem * item=[self.tabBarController.tabBar.items objectAtIndex:0]; // 显示 item.badgeValue=[NSString stringWithFormat:@"1"]; // 去掉角标 item.badgeValue = nil; // 设置应用程序的角标原创 2016-01-30 15:19:32 · 6061 阅读 · 0 评论 -
iOS跳转界面时隐藏tabBar的方法
//1.设置self.tabBarController.tabBar.hidden=YES; self.tabBarController.tabBar.hidden=YES;//2.如果在push跳转时需要隐藏tabBar,设置self.hidesBottomBarWhenPushed=YES; self.hidesBottomBarWhenPushed=YES...原创 2016-01-22 10:24:20 · 6467 阅读 · 1 评论