开发者

Set Grouped table view background colour

开发者 https://www.devze.com 2023-04-10 04:45 出处:网络
how can i set the background color of a grouped table view to clear color so that is get the image of the underlying Image View.

how can i set the background color of a grouped table view to clear color so that is get the image of the underlying Image View. i tried to set the view color to clear view in the xib it works fine in case of a normal table view but doesnt work for a grouped table view i also tried it progra开发者_Python百科mmatically but in vain is there any work around


Check this code for clear the background color of grouped table view..

UIView *backView = [[UIView alloc] init];
[backView setBackgroundColor:[UIColor clearColor]];

[yourTableView setBackgroundView:backView];

Thanks..

0

精彩评论

暂无评论...
验证码 换一张
取 消