标签控制器的简单使用
来源:互联网 发布:淘宝茶叶属于什么类目 编辑:程序博客网 时间:2024/06/08 06:45
//下列代码为创建3个控制器分别为n1,n2,n3UINavigationController*n1=[[UINavigationController alloc]initWithRootViewController:[[FirstViewController alloc]init]];n1.tabBarItem=[[UITabBarItem alloc]initWithTitle:@"111"image:nil tag:0];UINavigationController*n2=[[UINavigationController alloc]initWithRootViewController:[[SecondViewController alloc]init]];n2.tabBarItem=[[UITabBarItem alloc]initWithTitle:@"222"image:nil tag:1];UINavigationController*n3=[[UINavigationController alloc]initWithRootViewController:[[ThirdViewController alloc]init]];n3.tabBarItem=[[UITabBarItem alloc]initWithTitle:@"333"image:nil tag:2];//小红点n3.tabBarItem.badgeValue=@"2";self.viewControllers=@[n1,n2,n3];self.tabBarController.selectedViewController= [self.viewControllers objectAtIndex:1];
阅读全文
0 0
- 标签控制器的简单使用
- UITabBarController标签导航控制器的使用
- 标签的简单使用
- 简单标签的使用:
- 简单标签的使用
- 导航控制器UINavigationController的简单使用
- 导航控制器的简单使用--Swift
- iOS开发中 UITabBarController--标签控制器的使用
- 系统标签控制器的使用——UITabBarController
- 演示简单标签的使用
- 演示简单标签的使用
- 演示简单标签的使用
- java简单标签的使用
- <marquee>标签的简单使用
- JSTL标签的简单使用
- SDN控制器-Ryu简单使用
- Git版本控制器的使用教程(简单入门级)
- Git版本控制器的使用教程(简单入门级)
- 深入理解java虚拟机(1)-java内存区域
- 配置osg开发环境-win7+vs2015+osg
- 输入一个实数,并输出该数的绝对值
- The JAVA_HOME environment variable does not point to a working JDK or JRE.
- Hibernate 基本类型
- 标签控制器的简单使用
- [2017.10.28-29]String类&StringBuffer
- luoguP1758 管道取珠(bzoj1566)(dp+x^2的转化)
- SSH配置文件
- photoView查看大图,单击退出
- hdu 5120 Intersection (圆面积交)
- GitHub -- Git的导入
- 统计学习方法
- android 自定义view的简单实例