基于Tableview的滚动,如何处理数据不变的问题-----待整理

来源:互联网 发布:国外类似淘宝网站 编辑:程序博客网 时间:2024/06/13 14:26

http://hi.baidu.com/justtmiss/item/f3f6d50ce395f1d872e67630--感谢这边文章的作者,我从里面得到了启发


http://hi.baidu.com/justtmiss/item/f3f6d50ce395f1d872e67630



    NSString *CellIdentifier = [NSStringstringWithFormat:@"Cell%d%d", [indexPathsection], [indexPath row]];

    UITableViewCell *cell = [tableViewdequeueReusableCellWithIdentifier:

                             CellIdentifier];

    if (cell == nil) {  

        cell = [[[UITableViewCellalloc] initWithStyle:UITableViewCellStyleDefault

                                       reuseIdentifier: CellIdentifier]autorelease];

    }


这是我程序里面的正确代码,由于目前项目紧张。我打算过一段时间在好好描述一下问题和解决方案。

原创粉丝点击