I am following Andrew price's video on making clouds but my clouds are rendering with black spots on them. I have tried turning up the maximum transparency value under light paths but there is no difference between 50 and 200. 



What could be causing this?




Question: asynchronously loaded images in uitableview disappear on scrolling up
Answer: It seems like your reuse code contains bug, which causes everytime to create new cells. The following code uses reuseIdentifier as @"identifier"

if (cell == nil) {
   cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:@"identifier"];
}


Change it to: 

if (cell == nil) {
   cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:identifier];
}


EDIT:

On reusing tableView cells, you dont need to create and add subviews to cell each time. Instead, just create the subview when creating cell and then if cell is reusing, just get the subview using tag and update your content from datasource.

Your code can be modified like below:

if (cell == nil) {
   cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:identifier];
   UIImageView *imgVw=[[UIImageView alloc]initWithFrame:CGRectMake(250, 10, 40, 30)];
   imgVw.tag = indexPath.row;
   [cell.contentView addSubview:imgVw];
}
UIImageView imgVw = (UIImageView*)[cell.contentView viewWithTag:indexPath.row];
//Rest is same as you posted.


Hope this will fix the issue.