title: XCode IOS Beginner UIViewController Class change with button
body: <p>I am new to programming, I have been searching all night long and tyring to figure this out for a long time. Cant.... I dont want to use a navigation Controller but what I am trying to do is this. </p>
  
  <p>So I have two classes in my project. Class1 and Class2. Now there is a button in Class1. If this button is pressed, I want the screen to go to Class2. The closest I got was creating a parent class but when I do that, the button remains on both classes.</p>
  
  <pre><code>- (IBAction)addScheduleB:(id)sender {
      [UIView beginAnimations:@"View Curl" context:nil];
      [UIView setAnimationDuration:1.00];
      [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
      if (self.firstScreen.view.superview ==nil){
          if(self.firstScreen==nil) {
              self.firstScreen = [[FirstScreen alloc] initWithNibName:@"FirstScreen" bundle:nil];
          }
          [self.config1.view removeFromSuperview];
          [self.view insertSubview:self.firstScreen.view atIndex:0];
          [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.view cache:YES];
          [self.config1.view removeFromSuperview];
          [self.view insertSubview:self.firstScreen.view atIndex:0];
          [sender setTitle:@"Switch To DVR"];
  
      }
      else{
          if(self.config1 == nil){
              self.config1 = [[Config1 alloc] initWithNibName:@"Config1" bundle:nil];
          }
          [self.firstScreen.view removeFromSuperview];
          [self.view insertSubview:self.config1.view atIndex:0];
          [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES];
          [self.firstScreen.view removeFromSuperview];
          [self.view insertSubview:self.config1.view atIndex:0];
          [sender setTitle:@"Switch To TV"];
      }
      [UIView commitAnimations];
  }
  </code></pre>
  
  <p>I want to remove the parent class and have just the two classes.</p>
  
  <p>Is it possible to have a button inside class1 when pushed will take me to class2???</p>