title: switch between uiviews with buttons and not uinavigation controllers
body: <p>I have seen the post for <a href="https://stackoverflow.com/questions/584892/how-to-switch-views-by-buttons-on-iphone">How to switch views by buttons on iPhone?</a> but this doesn't answer how to switch back and forth between views with buttons.  The person that asked the question settled on the answer that they could switch between views with uinavigationcontroller. </p>
  
  <p>I put the following code in an ibaction that kicks off when a button is pressed in the primary view. </p>
  
  <pre><code>         PhoneNumberViewController *phoneNumberViewController1 = [[PhoneNumberViewController alloc] initWithNibName:@"PhoneNumberView2" bundle:nil];
  self.phoneNumberViewController = phoneNumberViewController1;
  [self.view removeFromSuperview];
  [self.view insertSubview: phoneNumberViewController1.view atIndex:0];
  </code></pre>
  
  <p>When this code executes the whole view just goes blank.  If I omit the removefromsuperview portion then the view disappears behind my button but the button still remains.  I'm not sure if this is the right way to switch between buttons but if anyone knows how to do this please help.  Also if anyone knows about any example projects that switch between views with buttons let me know.</p>
  
  <p>Thanks a million!</p>