- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath这个代理方法的实现,在可见的页面是会重复绘制页面的,所以绝大部分人都会在这里做一些代码处理比如:static NSString *CellIdentifier = @"LazyTableCell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];很常规的,防止cell对象无限的被创建,等同于android里面适配器的方法public View getView(int position, View convertView, ViewGroup arg2) 以上举例代码是可以让cell......
阅读全文