tabviewcell 上次选中和这次选中
2015-10-22 11:38
183 查看
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSInteger newRow = [indexPath
row];
NSInteger oldRow = (lastindexPath!=nil)?[lastindexPath
row]:-1;
if (newRow != oldRow) {
myTableViewCell *newcell=(myTableViewCell *)[m_tabview
cellForRowAtIndexPath:indexPath];
[newcell setrightHidden:YES];
myTableViewCell *oldcell=(myTableViewCell*)[m_tabview
cellForRowAtIndexPath:lastindexPath];
[oldcell setrightHidden:NO];
lastindexPath =indexPath;
}
}
NSInteger newRow = [indexPath
row];
NSInteger oldRow = (lastindexPath!=nil)?[lastindexPath
row]:-1;
if (newRow != oldRow) {
myTableViewCell *newcell=(myTableViewCell *)[m_tabview
cellForRowAtIndexPath:indexPath];
[newcell setrightHidden:YES];
myTableViewCell *oldcell=(myTableViewCell*)[m_tabview
cellForRowAtIndexPath:lastindexPath];
[oldcell setrightHidden:NO];
lastindexPath =indexPath;
}
}
相关文章推荐
- Spring MVC 前台get请求的时候controller中拿到中文字符乱码
- js事件绑定--支持匿名函数解除绑定
- Android studio Gradle 多渠道打包
- 【多线程】JAVA多线程和并发基础面试问答(转载)
- 什么是SQL注入式攻击?
- CSS3过渡效果实现菜单划出效果
- Matlab中断语句
- Gerrit OpenID登录错误#SignInFailure, SiGN_IN, Nonce+verification+failed
- 代理模式---java设计模式
- C语言文件操作函数大全
- setsockopt函数解析
- Matlab注释语句
- Android Studio教程06-快捷键、Debug的使用
- ios学习规划
- 《机器学习实战》——决策树
- junior-week6
- WebSphere MQ 入门指南-1
- iOS - 定位服务
- update 追加一个字段的内容,或替换一个字段里面某些 字符
- iOS如何把所有界面的状态栏的字体颜色都设置为白色