Transparent background in grouped UITableView - iPhone

前端 未结 4 1833
再見小時候
再見小時候 2020-12-30 00:50

I want to make the grouped UITableView transparent. I partially succeded with the following code:

UIColor *bgColor = [[UIColor alloc] initWithWhite:1 alpha:0         


        
4条回答
  •  忘掉有多难
    2020-12-30 01:28

    Instead of using

    UIColor *bgColor = [[UIColor alloc] initWithWhite:1 alpha:0.0];
    historyTable.backgroundColor = bgColor;
    

    Just use:

    historyTable.backgroundColor = [UIColor clearColor];
    

    That also clears up the memory leak you were creating.

提交回复
热议问题