转自:http://blog.csdn.net/xn4545945/article/details/35994863 一、自定义的思路 iOS中的TabBarController确实已经很强大了,大部分主流iOS应用都会采用。但是往往也不能满足全部的需求,因此需要自定义TabBar,自定义需要对系统 ...
分类:
移动开发 时间:
2016-06-07 23:54:49
阅读次数:
336
设置被选中的图片 self.tabBarController.tabBar.selectedItem.selectedImage = [UIImage imageNamed:@"main.png"]; 设置被选中颜色 self.tabBarController.tabBar.tintColor = ...
分类:
移动开发 时间:
2016-05-27 14:28:56
阅读次数:
257
最近进行跳转界面隐藏tabbar的时候遇到了一些坑,现在把它记录下来,如果有需要的朋友可以参考一下. 大家一般使用tabbar的时候,隐藏有两种方法. 一种是设置当前所处界面的隐藏属性 self.tabBarController.tabBar.hidden = YES; 这一种是在当前界面中设置ta ...
分类:
其他好文 时间:
2016-05-19 10:45:50
阅读次数:
315
MMDrawerController tabVC = [[TabBarController alloc]init]; //左边页面框架 LeftPage *leftController = [[LeftPage alloc] init]; self.drawerController = [[MMDr ...
分类:
其他好文 时间:
2016-05-11 13:06:25
阅读次数:
158
首先,一个app的搭建环境非常重要。既要实现基本功能,又要考虑后期优化的性能。 现在很多应用不仅仅是系统自带的控制器,由于需求复杂,基本上需要自定义多控制器来管理。 新建一个BasicNavigationViewController,继承UINavigationController 在这里实现导航外 ...
分类:
其他好文 时间:
2016-04-22 18:10:03
阅读次数:
333
定义tabBarController控制器 //设置图片的颜色和大小 - (UIImage *)YZImageWithColor:(UIColor *)color andSize:(CGSize)size{ CGRect rect = CGRectMake(0.0f, 0.0f, size.widt ...
分类:
其他好文 时间:
2016-04-18 15:03:19
阅读次数:
243
XCNavTab XCNavTab适用于快速搭建NavigationController和TabBarController相结合的框架 https://github.com/xiaocaiabc/XCNavTab 点击链接直接下载:https://codeload.github.com/xiaoca ...
分类:
其他好文 时间:
2016-04-03 23:53:24
阅读次数:
191
TabBarController 是在 ios 开发过程中使用较为频繁的一个 Controller,但是在使用过程中经常会遇到一些问题,例如本文所要解决的,如何修改 TabBar 选中时文字及图片的颜色。 如果需要,可以从这里下载完整的代码。 首先,我们创建一个新的项目,使用 TabBarContr ...
分类:
其他好文 时间:
2016-03-26 13:50:44
阅读次数:
428
比如: let window=UIApplication.sharedApplication().delegate?.window window!!.rootViewController=TabBarController() 如果有delegate 就有window 没有delegate windo
分类:
编程语言 时间:
2016-03-22 18:53:40
阅读次数:
170
1.UITabBarController:和UINavigationController类似,也可以轻松管理多个控制器,轻松完成空间之间的转换。 2.UITabBarController的使用: (1)使用步骤: <1>初始化UITabBarController
分类:
其他好文 时间:
2016-03-13 11:21:04
阅读次数:
157