7
Ben böyle bir UITableViewCell bir UIProgressView koydu:UITableViewCell'de UIProgressView nasıl derhal değiştirilir?
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"downloadcell"];
if(cell==nil)
{
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle
reuseIdentifier:@"downloadcell"] autorelease];
UIProgressView* downPreView = [[UIProgressView alloc] initWithProgressViewStyle:UIProgressViewStyleDefault];
downPreView.tag = 123;
downPreView.frame = CGRectMake(400,70, 200,10);
[cell.contentView addSubview:downPreView];
}
indirme boyutu değişti, ben yapmak:
UIProgressView* downPreView = (UIProgressView*)[cell viewWithTag:123];
downPreView.progress = downloadPre;
ama downPreView görünümünü hemen değişmez, sadece I sonrası dokunmatik hücre veya diğer hücre, bu yüzden UITableViewCell UIProgressView hemen nasıl değiştirilir?