title: How to set a UIView in fullscreen for all Device in iOS Programatically?
body: <p>I have to set an <code>UIView</code> in fullscreen Programatically for all devices like: iPhone 3GS, 4, 4S, 5, 5S, 5C. </p>
  
  <p>I googled so many times and get a answer but its not coming properly. 20 pixel is less from bottom part. I share my screenshot please see and let me know what i have to do.</p>
  
  <p><img src="https://i.stack.imgur.com/22Lpg.png" alt="enter image description here"></p>
  
  <p>My Code is : </p>
  
  <pre><code>      UIView  *myview = [[UIView alloc] initWithFrame:CGRectMake(0, 0,   [[UIScreen mainScreen] applicationFrame].size.width, [[UIScreen mainScreen] applicationFrame].size.height)];
        [myview setBackgroundColor:[UIColor grayColor]];
        [self.view addSubview: myview];
  </code></pre>
  
  <p>See properly from bottom its 20 pixel is white. How can i manage that. ?</p>