取得已经创建的UITableViewCell

也许这是一个很简单的问题,可笑的是我以前一直以为 UITableViewDataSource中的以下方法 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 其实使用这个方法实际上是创建了一个新的UITableViewCell   正确方法是使用 该 UITableView的以下方法 - (UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath;            // returns nil if cell is not visible or index path is out of range 这样找到的对象才是原来已经生成的  

posted on 2013-01-31 15:05  流れ星ーー  阅读(97)  评论(0编辑  收藏  举报

导航