刷新表某一行和块,实现颜色渐变
来源:互联网 发布:笔记本mac地址可以改吗 编辑:程序博客网 时间:2024/04/28 08:35
- #import <QuartzCore/QuartzCore.h>
- CAGradientLayer *gradient = [CAGradientLayer layer];
- gradient.frame = rect;
- gradient.colors = [NSArray arrayWithObjects:(id)[UIColor blackColor].CGColor,
- (id)[UIColor grayColor].CGColor,
- (id)[UIColor blackColor].CGColor,nil];
- [self.layer insertSublayer:gradient atIndex:0];
//一个section刷新
NSIndexSet *indexSet=[[NSIndexSet alloc]initWithIndex:2];
[tableview reloadSections:indexSetwithRowAnimation:UITableViewRowAnimationAutomatic];
//一个cell刷新
NSIndexPath *indexPath=[NSIndexPath indexPathForRow:3inSection:0];
[tableView reloadRowsAtIndexPaths:[NSArrayarrayWithObjects:indexPath,nil]withRowAnimation:UITableViewRowAnimationNone];
0 0
- 刷新表某一行和块,实现颜色渐变
- 实现透明度渐变和颜色渐变
- code实现透明度渐变和颜色渐变的view
- code实现透明度渐变和颜色渐变的view
- code实现透明度渐变和颜色渐变的view
- code实现透明度渐变和颜色渐变的view
- 【iOS】View实现透明度渐变和颜色渐变
- iOS实现透明度渐变和颜色渐变的view
- 实现 颜色渐变
- 背景实现颜色渐变
- CAGradientLayer_实现颜色渐变
- CAGradientLayer实现颜色渐变
- 实现颜色渐变
- android实现颜色渐变
- iOS实现颜色渐变
- iOS 实现颜色渐变
- ios 实现颜色渐变(渐变色)
- Tab栏图标和字体颜色渐变的实现
- 获取数组元素位置
- android:clipChildren属性
- iOS企业开发In House ipa发布流程
- Mysql Fabric HA配置测试
- u-boot-2014.10移植第30天----nand flash的SPL启动(二)
- 刷新表某一行和块,实现颜色渐变
- 日经社説 20150115 成長と財政両立の道筋見えぬ予算(社説)
- 计算时间差
- oracle 中execute immediate以及如何用变量作为表名查询
- Hadoop机架感知
- ViewState与Session
- Activity生命周期
- 办公自动化,内容部分无法显示的处理方法
- 开发板挂载Ubuntu文件夹