backgroundViewパラメータは、UITableViewCellのbackgroundViewパラメータを設定しようとしていますが、backgroundViewはセルの境界をオーバーラップしています。私はmasksToBoundsをYESに設定しようとしましたが、それは違いはありません。私が間違っているところを教えてください。ここでUITableViewCellのbackgroundViewオーバーラップcontentView
は私の問題を示す画像である。ここでは
は私のコードです:なぜあなただけいない場合
UIImageView *iv = [[[UIImageView alloc] initWithFrame:cell.frame] autorelease];
[iv setImage:[UIImage imageNamed:@"paper"]];
[iv.layer setMasksToBounds:YES];
[cell.layer setMasksToBounds:YES];
[cell.contentView.layer setMasksToBounds:YES];
[cell setBackgroundView:iv];