iphone - UITableViewHeaderFooterView: Unable to change background color -


i'm trying change background color of uitableviewheaderfooterview. although view appearing, background color remains default color. i'm getting log xcode saying:

setting background color on uitableviewheaderfooterview has been deprecated. please use contentview.backgroundcolor instead.

however, none of following options work:

mytableviewheaderfooterview.contentview.backgroundcolor = [uicolor blackcolor]; mytableviewheaderfooterview.backgroundview.backgroundcolor = [uicolor blackcolor]; mytableviewheaderfooterview.backgroundcolor = [uicolor blackcolor]; 

i've tried changing background color of view in xib file.

any suggestions? thanks.

you should either use mytableviewheaderfooterview.tintcolor, or assign custom background view mytableviewheaderfooterview.backgroundview.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -