UITableView横向滚动
来源:互联网 发布:idc源码 编辑:程序博客网 时间:2024/06/05 23:53
1. UITableView 设置
CGRect tableViewRect = CGRectMake(0.0, 0.0, 50.0, 320.0);
self.tableView = [[UITableView alloc] initWithFrame:tableViewRect style:UITableViewStylePlain];
tableView.center = CGPointMake(self.view.frame.size.width / 2, self.view.frame.size.height / 2);
tableView.delegate = self;
tableView.dataSource = self;
//tableview逆时针旋转90度。
tableView.transform = CGAffineTransformMakeRotation(-M_PI / 2);
// scrollbar 不显示
tableView.showsVerticalScrollIndicator = NO;
2. UITableViewCell 设置
- (UITableViewCell *)tableView :( UITableView *)aTableView cellForRowAtIndexPath :( NSIndexPath*)indexPath
{
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"identifier"];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier@"identifier"] autorelease];
// cell顺时针旋转90度
cell.contentView.transform = CGAffineTransformMakeRotation(M_PI / 2);
}
return cell;
}
0 0
- UITableView横向滚动
- [IOS]UITableView横向滚动
- UITableView横向滚动
- UITableView横向滚动
- UITableView 横向滚动(一)
- UITableView 横向滚动(二)
- 使用UITableview实现横向滚动
- UITableView 横向滚动(一)
- 用类似UITableView的方式实现横向滚动
- 横向滚动
- 横向滚动
- 横向滚动
- 横向滚动
- 横向滚动
- 创建横向的UITableView
- 创建横向的UitableView
- 横向不间断滚动广告
- javascript横向连续滚动
- python linux 脚本执行
- Android自定义View之一
- HTML提供了5种空格表示
- PS反向抠图保存
- 利用IText生成PDF时图片,位置错乱的问题
- UITableView横向滚动
- 通过View.post()获取View的宽高引发的两个问题:1post的Runnable何时被执行,2为何View需要layout两次;以及发现Android的一个小bug
- 第五章:自定义评分规则进行排序
- 手机管理应用研究【2】—— 安装卸载篇
- 表变量和临时表的比较
- java分布式学习
- 坐标系统 有点晕
- TCP 的那些事儿(上)
- 【Codeforces Round 323 (Div 2)A】【水题】Asphalting Roads 行列之进行首次操作