码迷,mamicode.com
首页 >  
搜索关键字:cell    ( 5130个结果
UITableViewCell的选中时的颜色设置
[cpp]view plaincopy1.系统默认的颜色设置[cpp]view plaincopy//无色cell.selectionStyle=UITableViewCellSelectionStyleNone;//蓝色cell.selectionStyle=UITableViewCellSele...
分类:其他好文   时间:2014-08-26 19:37:06    阅读次数:180
几种设置UITableView的cell动态高度的方法
1.UITableView加载的顺序是先得到表的行的高度,也就是先调用heightForRowAtIndexPath方法,然后再调用cellForRowAtIndexPath,所以我们有两个办法实现自定义cell高度(解决不同section的不同行高问题)。一:改变它的加载顺序,或者说白了就是计算好...
分类:其他好文   时间:2014-08-26 19:19:36    阅读次数:219
HDU4973:A simple simulation problem.(线段树)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-26 15:38:46    阅读次数:270
RowSelectableTableModel proxy for TableModel
群里看到有的同学需要在某 JTable 内容的基础上,多出一列 checkbox,用于某种多选,不是第一次看到这种需求了,所以写了这个“通用”的代理实现。 大体写了一下,没有仔细处理原TableModel的事件,所以使用的时候要注意原TableModel不能fire基于cell的更新事件,不能添加删除列。 先扔这里,有时间再琢磨。 /* * Copyright 20...
分类:其他好文   时间:2014-08-26 11:45:25    阅读次数:223
iOS中Cell高度如何能够自动适应需要显示的内容
本文的代码例子 : "Cell行高自适应.zip"http://vdisk.weibo.com/s/Gb9Mt下面我们来看看代码。我需要一个第三方库EGO异步下载、addtion文件夹和StringUtil文件以及Comment、Status、User这三个数据模型,这篇文章的主要目的是讲解如何计算...
分类:移动开发   时间:2014-08-26 09:38:35    阅读次数:463
iOS_21团购_控制器继承关系图
最终效果图: 控制器继承关系图: 说明: 点击主控制器左侧的Dock上的按钮, 比如【团购】、【收藏】、【地图】时, 实现的功能有许多相同之处。 具体说明如下: 点击【团购】,以九宫格的形式显示一个个团购, 并且,点击一个Cell时,展示该Cell对应的团购详情 点击【收藏】,以九宫格的形式显示一个个已经归档的团购模型, 并且...
分类:移动开发   时间:2014-08-25 19:22:34    阅读次数:399
iOS 同时获取UITableViewCell中的Section和Row值
首先附上效果图吧,一个自定义的cell!第一步:创建表格- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view from its nib. sel...
分类:移动开发   时间:2014-08-25 11:24:44    阅读次数:345
HDU-4973-A simple simulation problem.(二分+树状数组)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-25 01:13:03    阅读次数:321
HDU-4937-A simple simulation problem.(线段树)
Problem Description There are n types of cells in the lab, numbered from 1 to n. These cells are put in a queue, the i-th cell belongs to type i. Each time I can use mitogen to double the cells in ...
分类:其他好文   时间:2014-08-25 01:12:13    阅读次数:273
iOS8自动调整UITableView和UICollectionView布局
本文讲述了UITableView、UICollectionView实现self-sizing cell布局的知识,以及如何用InvalidationContext优化UICollectionView布局的更新。背景iOS越来越人性化了,用户可以在设置-通用-辅助功能中动态调整字体大小了。你会发现所有...
分类:移动开发   时间:2014-08-24 23:39:03    阅读次数:597
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!