QQ列表的收缩展开,带动画效果
来源:互联网 发布:python数据分析 微盘 编辑:程序博客网 时间:2024/04/28 14:06
-(void)sectionHeaderView:(QQSectionHeaderView*)sectionHeaderView sectionClosed:(NSInteger)section
{
QQList *persons = [listsobjectAtIndex:section];
persons.opened = !persons.opened;
// 收缩+动画 (如果不需要动画直接reloaddata)
NSInteger countOfRowsToDelete = [self.tableViewnumberOfRowsInSection:section];
if (countOfRowsToDelete > 0) {
persons.indexPaths = [[NSMutableArrayalloc] init];
for (NSInteger i = 0; i < countOfRowsToDelete; i++) {
[persons.indexPathsaddObject:[NSIndexPath indexPathForRow:iinSection:section]];
}
[self.tableViewdeleteRowsAtIndexPaths:persons.indexPathswithRowAnimation:UITableViewRowAnimationTop];
}
}
-(void)sectionHeaderView:(QQSectionHeaderView*)sectionHeaderView sectionOpened:(NSInteger)section
{
QQList *persons = [listsobjectAtIndex:section];
persons.opened = !persons.opened;
// 展开+动画 (如果不需要动画直接reloaddata)
if(persons.indexPaths){
[self.tableViewinsertRowsAtIndexPaths:persons.indexPathswithRowAnimation:UITableViewRowAnimationBottom];
}
persons.indexPaths = nil;
}
- QQ列表的收缩展开,带动画效果
- 模拟QQ列表展开收缩
- (二十八)QQ好友列表的展开收缩
- 仿QQ列表展开、收缩(1)
- 仿QQ列表展开、收缩(2完善)
- 布局展开收缩的动画
- ExpandableListView展开收缩加动画效果
- 层的展开收缩效果
- 仿照QQ列表展开效果
- 第3课--3.1QQ列表展开收缩扩展
- 多个item的收缩展开动画
- 列表控件的展开与收缩
- Android 收缩展开动画
- jquery展开收缩列表
- Extjs展开和收缩动画效果造成问题
- 标题收缩展开效果
- 收缩和展开效果
- JS 收缩 展开效果
- 是学生都copy下来,现在不用,将来绝对要用
- 深入浅出InfoPath——动态获取InfoPath中的命名空间
- http://hi.baidu.com/jisu3d/blog/item/f7ad4fd0ac727526960a1652.html HLSL
- C# 遍历treeview
- ADF: managed bean 和 backing bean
- QQ列表的收缩展开,带动画效果
- python与数据数据库
- 利用 JSP 2 提供的 SimpleTagSupport 开发自定义标签
- 2011-9-14
- Java Servlet 【待学习】
- vc6程序异常崩溃 - stl的basic_string内存破坏
- Struts 2客户端验证
- configure/make/make install的作用
- Java读取WEB-INF下XML文件并进行解析