collectionView中只有三个cell 每次显示的都是第二个cell
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath
*)indexPath {
CycleViewCell *ce...
分类:
其他好文 时间:
2015-07-24 14:26:35
阅读次数:
123
-(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{ i.....
分类:
其他好文 时间:
2015-07-21 21:49:40
阅读次数:
75
-?(BOOL)tableView:(UITableView?*)tableView?canEditRowAtIndexPath:(NSIndexPath?*)indexPath
{????return?YES;
}
-?(UITableViewCellEditingStyle)tableView:(UITableView?*)tableView?editingSt...
分类:
移动开发 时间:
2015-07-21 17:29:15
阅读次数:
786
滑动出现类似iPhone短信出现按钮的效果不啰嗦了 上代码关键方法如下- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath{ return YES;}- (UITabl...
分类:
其他好文 时间:
2015-07-21 14:35:32
阅读次数:
295
(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath这个代理方法的实现,在可见的页面是会重复绘制页面的,所以绝大部分人都会在这里做一些代码处理比如:s....
分类:
其他好文 时间:
2015-07-18 19:54:59
阅读次数:
118
昨天在调试导航控制器的时候发现在push的时候动画有卡顿的现象,出现卡顿问题的代码如下:1 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {2 UIVie...
分类:
其他好文 时间:
2015-07-17 17:46:53
阅读次数:
98
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath不执行基本上只有3个原因1. delegate没设,一定要有self.tableView.del...
分类:
其他好文 时间:
2015-07-16 11:27:25
阅读次数:
587
很多人在- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{//不用static关键字修饰 NSString *identifile = @"m....
分类:
移动开发 时间:
2015-07-16 00:32:27
阅读次数:
600
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
forRowAtIndexPath:(NSIndexPath *)indexPath {
if (editingStyle == UITableViewCellEdi...
分类:
其他好文 时间:
2015-07-14 13:41:58
阅读次数:
171
方法:-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ //创建cell UITableViewCell *cell = [[UITable.....
分类:
其他好文 时间:
2015-07-13 11:59:49
阅读次数:
141