uitableview
来源:互联网 发布:数据库市场规模 编辑:程序博客网 时间:2024/05/05 04:34
tableview.dataSource = self;
tableview.delegate = self;
//分割线
tableview.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
//分割线颜色
tableview.separatorColor = .......;
//uitableview的style为UITableViewStyleGrouped时,设置背景色用
tableview.backgroundView = Nil;
//背景色
tableview.delegate = self;
//分割线
tableview.separatorStyle = UITableViewCellSeparatorStyleSingleLine;
//分割线颜色
tableview.separatorColor = .......;
//uitableview的style为UITableViewStyleGrouped时,设置背景色用
tableview.backgroundView = Nil;
//背景色
tableview.backgroundColor =.......;
设置滚动条位置Y轴
tableview.contentOffset = CGPointMake(0,yValue);
滚动条动画设置位置
NSTimeInterval animationDuration=0.70f;
[UIViewbeginAnimations:@"ScorollY"context:nil];
[UIViewsetAnimationDuration:animationDuration];
tableview.contentOffset =CGPointMake(0,80.f);
[UIViewcommitAnimations];
取消cell的选中
[tableviewdeselectRowAtIndexPath:[tableviewindexPathForSelectedRow] animated:YES];
ios7特性:
ios7分割线没有居左,向右移了10个像素,想让他居左 tableview.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0);
这个只有IOS7才有的属性,使用时需要作版本判断。
0 0
- UITableView
- UITableView
- UITableView
- UITableView
- UITableView
- UITableView
- UITableView
- UITableView
- UITableview
- UITableView
- UITableView
- UITableView
- UITableView
- UITableView,
- UITableView
- UITableView
- UITableView
- UITableView
- Android知识点
- java基础之——多线程
- S3C2410驱动分析的LCD驱动
- java变成之——反射
- mysql 执行顺序 SQL语句执行顺序分析
- uitableview
- Oracle11G+win8环境下配置PL/SQL Developer(版本7.1.5.1398)
- java基础——正则表达式
- 工厂模式,简单工厂模式,抽象工厂模式三者之间的区别
- 线性时间的排序
- GDI+ 在Delphi程序的应用 -- GDI+图像与GDI位图的相互转换
- DBA数据库管理员JAVA程序员架构师必看 - IT公司面试手册
- 封装之美——泛型
- 在Windows下使用gcc编译器