I have a tableView in which I have a header view that I added using drag and drop. I want to hide it in device portrait mode and show it in landscape mode. I applied the orientation condition in the heighForHeaderInSection method and returned height 0 when in portrait mode and 70 when in landscape but it did not work as expected and added a new header space in my tableView.
How can I access the header I created in the storyboard?