title: IOS: change orientation of UITableView from horizontal to vertical
body: <p>i am working in a project in which i am using <code>UITableView</code> to display data. The orientation of my project is Landscape. now i want to add portrait orientation mode to my project so that any user can use app in portrait as well as in landscape mode.
  Is there any code or method available by the help of which i will change the orientation of <code>UITableView</code> from horizontal to vertical??</p>
  
  <p>i want the orientation something like this
  <a href="https://i.stack.imgur.com/gmAHQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gmAHQ.png" alt="enter image description here"></a> </p>
  
  <p><a href="https://i.stack.imgur.com/R388l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R388l.png" alt="enter image description here"></a></p>