【代码笔记】切换条
2016-02-24 09:34
302 查看
一,效果图。
![](http://images2015.cnblogs.com/blog/337518/201510/337518-20151016093310413-1111515064.jpg)
二,工程图。
![](http://images2015.cnblogs.com/blog/337518/201510/337518-20151016093256179-622943345.jpg)
三,代码。
RootViewController.h
RootViewController.m
![](http://images2015.cnblogs.com/blog/337518/201510/337518-20151016093310413-1111515064.jpg)
二,工程图。
![](http://images2015.cnblogs.com/blog/337518/201510/337518-20151016093256179-622943345.jpg)
三,代码。
RootViewController.h
#import <UIKit/UIKit.h> @interface RootViewController : UIViewController @end
RootViewController.m
#import "RootViewController.h" #import "TopIndexForMoreButton.h" @interface RootViewController () @end @implementation RootViewController - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization } return self; } - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. //添加切换栏 TopIndexForMoreButton* topView = [[TopIndexForMoreButton alloc] initWithFrame:CGRectMake(0, 100, 0, 0) delegate:self]; [self.view addSubview:topView]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. }
相关文章推荐
- YII2 modules 模块化
- Spring的源头基于构件的软件开发(CBD-Component-Based Development)
- C++学习笔记:继承中的构造与析构
- 启动eclipse报Version 1.6.0_65 of the JVM is not suitable for this product.
- 用eclipse创建java web工程 (最详细的讲解)
- spring scheduler 定时器
- 使用gitolite搭建代码库
- sftp 常用命令
- 函数副本机制
- Qt上截取中英文混合字符串的指定长度内容
- Java:String和Date、Timestamp之间的转换
- C++基本概念----构造函数和析构函数
- Python学习(一):入门
- PAT 1004. 成绩排名 (20);java实现
- 关于python的input和raw_input(仅针对python2)
- VBA outlook实战#02--自动分类邮件
- caffe中matlab接口配置
- 堆,优先队列以及堆排序
- iOS小明开发笔记(二十三) (C语言之堆栈入门--堆和栈的区别)
- 编程论坛排名