【发布时间】:2012-04-09 15:27:30
【问题描述】:
The uitableview view gets slow while receiving images from server through Json
` -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
NSString* CellIdentifier = [NSString stringWithFormat:@"Cell%d",indexPath.row];
UITableViewCellFixed *cell = (UITableViewCellFixed *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCellFixed alloc] initWithStyle:UITableViewCellStyleSubtitle
reuseIdentifier:CellIdentifier] autorelease];;
}
NSURL *url = [NSURL URLWithString:[dict objectForKey:@"allfeeds3"]];
NSData *data = [[NSData alloc] initWithContentsOfURL:url];
// cell.imageView.image = [UIImage imageWithData:data];
UIImage *tmpImage = [[UIImage alloc] initWithData:data];
cell.imageView.image = tmpImage;
}
【问题讨论】:
-
这里已经被问过很多次了...请在发布您的问题之前进行搜索。答案已经在这里了……
标签: iphone uitableview