title: How can i fit the mapview using Autoresizing in iOS?
body: <p>Now i am working on old project, client wants to add updating on that project.I newly added one viewController for showing <code>mapview</code>, but this mapview cannot fit on the screen like iphone6, etc.This application uses autoresizing for resizing different views.I set autoresize property for fit the mapview on screen i tried both programatically and xib.But its not working.How can i solve this issue?Please help me.</p>
  
  <pre><code>_mapView.autoresizesSubviews = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
  </code></pre>
  
  <p>or</p>
  
  <p><a href="https://i.stack.imgur.com/aVpkz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aVpkz.png" alt="Autoresizing property for Mapview"></a></p>
  
  <p><a href="https://i.stack.imgur.com/xi2Ho.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xi2Ho.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/AUJDL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AUJDL.png" alt="enter image description here"></a></p>