title: Resizing a modal view
body: <p>I'm not sure how to achieve it but the image below shows the size of modal that I want to appear:</p>
  
  <p><img src="https://i.stack.imgur.com/6c5no.png" alt="Modal View Controller"></p>
  
  <p>My code used to push the modal view is:</p>
  
  <pre><code>CustomerLogin *customerlogin = [[CustomerLogin alloc] initWithNibName:@"CustomerLogin" bundle:nil];
          [self presentModalViewController:customerlogin animated:YES]; 
  
          [customerlogin release];
  </code></pre>
  
  <p>EDIT ---</p>
  
  <p>Made changes suggested below that look like this:</p>
  
  <pre><code>UIView *overlay = [[UIView alloc] initWithFrame:self.view.bounds];
          overlay.backgroundColor = [UIColor colorWithWhite:0 alpha:0.5]; // Black color
          [self.navigationController.view addSubview:overlay];
  
          //Add Login View
          CustomerLogin *loginView = [[CustomerLogin alloc] initWithFrame:CGRectMake(0,0, 200, 300)]; //I guessed a size
          loginView.center = overlay.center; //Center the view
          [overlay addSubview:loginView];
  </code></pre>
  
  <p>Getting 3 errors:</p>
  
  <p>property center doesn't exist on CustomerLogin
  CustomerLogin won't respond to initWithFrame
  Incompatible pointer types sending CustomerLogin* to type UIView*</p>