- 浏览: 438771 次
- 性别:
- 来自: 广州
文章分类
- 全部博客 (538)
- C/C++ Primer (69)
- Objective-C Primer (102)
- Python Primer (19)
- JavaScript Primer (1)
- Java Primer (37)
- PHP Primer (17)
- 泛 Linux (37)
- Shell Script (21)
- APUE (21)
- UNP__1&2 (19)
- NetWork (7)
- Oracle周边 (38)
- Mysql里边 (6)
- Windows技 (9)
- 简单算法 & 数据结构 (14)
- 设计模式 (6)
- GTK历程 (12)
- 工具使用 (25)
- 杂事 (23)
- 一些概念 (17)
- Web方面 (10)
- myCodeTools (9)
- ^未 竟$ (13)
- 硬件通信 (2)
- Games (1)
最新评论
Cell
- 博客分类:
- Objective-C Primer
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
selectedCellIndexPath = indexPath;
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone];
[tableView scrollToNearestSelectedRowAtScrollPosition:UITableViewScrollPositionNone animated:YES];
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if(selectedCellIndexPath != nil && [selectedCellIndexPath compare:indexPath] == NSOrderedSame)
return kTableViewExpandRowHeight;
else
return kTableViewCollapseRowHeight;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
填星星,demo,AdvancedTableViewCells
- (void)drawRect:(CGRect)rect
{
CGPoint ratingImageOrigin = CGPointMake(81.0, 45.0);
UIImage *ratingBackgroundImage = [UIImage imageNamed:@"StarsBackground.png"];
[ratingBackgroundImage drawAtPoint:ratingImageOrigin];
UIImage *ratingForegroundImage = [UIImage imageNamed:@"StarsForeground.png"];
UIRectClip(CGRectMake(ratingImageOrigin.x, ratingImageOrigin.y,
ratingForegroundImage.size.width * (_cell.rating / MAX_RATING),
ratingForegroundImage.size.height));
[ratingForegroundImage drawAtPoint:ratingImageOrigin];
}
- (void)_commonInit
{
backgroundImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"StarsBackground.png"]];
backgroundImageView.contentMode = UIViewContentModeLeft;
[self addSubview:backgroundImageView];
foregroundImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"StarsForeground.png"]];
foregroundImageView.contentMode = UIViewContentModeLeft;
foregroundImageView.clipsToBounds = YES;
[self addSubview:foregroundImageView];
}
UITableView *tab;
BOOL animations = [UIView areAnimationsEnabled];
[UIView setAnimationsEnabled:YES];
[tab beginUpdates];
[tab endUpdates];
[UIView setAnimationsEnabled:animations];
selectedCellIndexPath = indexPath;
[tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationNone];
[tableView scrollToNearestSelectedRowAtScrollPosition:UITableViewScrollPositionNone animated:YES];
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if(selectedCellIndexPath != nil && [selectedCellIndexPath compare:indexPath] == NSOrderedSame)
return kTableViewExpandRowHeight;
else
return kTableViewCollapseRowHeight;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
填星星,demo,AdvancedTableViewCells
- (void)drawRect:(CGRect)rect
{
CGPoint ratingImageOrigin = CGPointMake(81.0, 45.0);
UIImage *ratingBackgroundImage = [UIImage imageNamed:@"StarsBackground.png"];
[ratingBackgroundImage drawAtPoint:ratingImageOrigin];
UIImage *ratingForegroundImage = [UIImage imageNamed:@"StarsForeground.png"];
UIRectClip(CGRectMake(ratingImageOrigin.x, ratingImageOrigin.y,
ratingForegroundImage.size.width * (_cell.rating / MAX_RATING),
ratingForegroundImage.size.height));
[ratingForegroundImage drawAtPoint:ratingImageOrigin];
}
- (void)_commonInit
{
backgroundImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"StarsBackground.png"]];
backgroundImageView.contentMode = UIViewContentModeLeft;
[self addSubview:backgroundImageView];
foregroundImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"StarsForeground.png"]];
foregroundImageView.contentMode = UIViewContentModeLeft;
foregroundImageView.clipsToBounds = YES;
[self addSubview:foregroundImageView];
}
UITableView *tab;
BOOL animations = [UIView areAnimationsEnabled];
[UIView setAnimationsEnabled:YES];
[tab beginUpdates];
[tab endUpdates];
[UIView setAnimationsEnabled:animations];
发表评论
-
float equal
2013-05-23 18:21 775- (BOOL)floatA:(float)f1 equalB ... -
Coding Guidelines for Cocoa
2013-05-17 16:53 629参考: https://developer.apple.com ... -
Object-C编程规范
2013-05-15 10:49 6911.参考苹果的文档 “Coding Guidelines fo ... -
MacPorts
2013-02-28 18:12 568http://blog.csdn.net/lynjay/art ... -
KVC/KVO 监听对象属性变化
2013-01-10 23:09 7349http://blog.csdn.net/a6472953/a ... -
ios Associative 扩展属性
2013-01-08 16:45 1491@dynamic和@synthesize http://blo ... -
ObjC Dynamic
2013-01-08 15:21 738原文:http://www.onevcat.com/2012/ ... -
UITableView & UITextField
2012-11-08 00:35 790keyboard event ---------------- ... -
UIWebView
2012-10-24 11:06 712http://hi.baidu.com/wei_1123/it ... -
Device orientation
2012-10-15 16:20 694- (BOOL)shouldAutorotateToInter ... -
system notification
2012-10-12 15:22 588for UIApplication These notifi ... -
NSZombies
2012-08-09 08:51 626NSZombies搞定EXC_BAD_ACCESS http: ... -
Quartz 2D Programming Guide
2012-07-17 00:51 552Quartz 2D 内容不少啊 Graphics Trans ... -
NSCache
2012-07-12 14:25 711http://thenewself.blog.163.com/ ... -
NSCoding
2012-07-12 13:39 914@protocol NSCoding - (void ... -
分析 crash 报告的方法
2012-07-12 01:15 547http://blog.csdn.net/toss156/ar ... -
Multi-touch
2012-07-11 23:33 687智能与灵活与工作量>_< http://www.o ... -
iOS的多核编程和内存管理
2012-07-11 18:14 678http://anxonli.iteye.com/blog/1 ... -
NSCopying
2012-07-10 15:54 481http://www.apple.com.cn/develop ... -
NSTimeZone
2012-07-10 14:42 390http://developer.apple.com/libr ...
相关推荐
Cell5.1产品分Cell组件5.1和Cell插件5.1两个姐妹产品,它们是北京用友华表软件技术有限公司在长期开发实践的基础上推出的功能强大、技术成熟的报表二次开发工具。 Cell组件(Activex 控件,扩展名为OCX)主要适用于...
将cell类型的数据转换为double类型的函数
Cell5.1产品分Cell组件5.1和Cell插件5.1两个姐妹产品,它们是北京用友华表软件技术有限公司在长期开发实践的基础上推出的功能强大、技术成熟的报表二次开发工具。 Cell组件(Activex 控件,扩展名为OCX)主要适用于...
一TICLI 中的命令(其中[;ucl]可加可不加)) ...init:cell X:spp as init:cell X:spp rms inh:cell,flash,extern 5. 看基站里CRC中的软件 MD/CP站:op:cell X,cdm Y,generic CDBS(MM)站:op:cell X,bbu 1,generic
cell帮助手册 华表cell中文帮助手册
用友华表CELL插件Demo 用友华表的CELL插件是一款基于ActiveX技术的解决中国式报表显示和打印的第三方控件, 和其它第三方ActiveX控件一样,用友华表CELL插件只能运行在客户端,只能使用JAVASCRIPT、VBSCRIPT客户端...
cell开发文档,非常有用的cell表格开发api,适用于表格类开发人员
cell控件帮助文件 cell控件帮助文件 cell控件帮助文件
2.实现了可删除的tableViewCell,向左划动某个cell,cell右侧会出现“删除”按钮,点击即可将当前cell删除,删除伴有简单的动画效果。 3.实现了tableView的下拉刷新功能,下拉tableView的过程中,将依次显示“下拉...
当UITableView遇到多cell时,往往我们要建立多个cell,这是就会显得类多,臃肿。 demo采用了工厂模式,用父类cell指针指向子类cell,减少类臃肿,不好维护的效果
in cell tp 工作原理,
方向梯度直方图(Histogram of Oriented ...之后将每几个 cell 组成一个 block(以 3*3 为例),一个 block 内所有 cell 特征串联起来得到该 block的 HOG 特征 descriptor并串联,就可以得到该物体分类后的特征。
thinkcell 的有效期只有15天,每隔15天就要找一次码太麻烦了,有了这个程序加上python,就可以自动跳过thinkcell的有效期限制啦
tableview手动适应cell高度,以及iOS8之后自动适应cell高度
cell数组MATLAB详情介绍使用排序.doccell数组MATLAB详情介绍使用排序.doccell数组MATLAB详情介绍使用排序.doccell数组MATLAB详情介绍使用排序.doccell数组MATLAB详情介绍使用排序.doccell数组MATLAB详情介绍使用排序...
真正实现 全屏 满屏 最大化 的 空当接龙 Freecell 3.50 20150909 3.50版是在向海飞的空档接龙3.30版基础上修改而来,适合需要全屏 满屏 最大化 大窗口大图标大字体的网友使用。 3.30版问题:全屏时手动或自动解答...
内容 Cell 插件的核心文件 包括cell插件 cab分发包 帮助文件 加密狗驱动文件 Cell组件(Activex 控件,扩展名为OCX)主要适用于开发windows应用程序,是为商业软件解决实际开发过程中的图表、报表显示,输入,打印...
Cell 插件用于开发B/S结构程序,使用Asp, Asp.net, Jsp, VbScript, JavaScript等语言开发,可以在浏览器中直接打印报表(非IE打印),带有国际化数字签名,让用户使用更方便,更安全。 · 具备Cell组件的所有特色...
Cell插件基于Xml技术实现客户端与服务器端数据交换的ASP源代码。需要安装用友华表软件技术有限公司的Cell插件后才能正常观看,请先下载Cell插件。 Cell网站: Http://Www.Cellsoft.Cc/Cell/Index.Asp Cell插件下载...
麦肯锡工具软件:think_cell详细教程