ios - Static TableView transparent header -


i want achieve next things in uitableviewcontroller:

  1. have transparent table header view fixed height.
  2. have solid colored table footer view (for example white color).

to achieve need set tableviews’ background clearcolor. once set whole tableview backgroundcolor clearcolor header , footer gets transparent, , don’t need footerview transparent.

you may say: use tableview inside uiviewcontroller, can’t it, because i’m using static cells dynamic height, , static tableview never conform uitableviewdatasource protocol (only way change cell heights dynamically), because haven’t got methods tableview(cellforrowatindexpath).

example image

try setting tablefooterview property:

tableview.tablefooterview = uiview() 

hope helps!


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -