title: Pushing a segue from xib file not in storyboard?
body: <p>I am attempting to accomplish something and i was looking for a few tips. I started working on a project that consisted of one xib file. Later on i upgraded to xcode 5 and pretty soon for the rest of my interface files i began using my storyboard however i kept my old xib (mainly cause of how i pass in methods to it) and simply called it like : </p>
  
  <pre><code>mapViewController *mapView=[[mapViewController alloc]initWithNibName:@"mapViewController" bundle:nil location:0 option:@"poe"];
  </code></pre>
  
  <p>Recently I have added new functionality and upon clicking a callout I would like to prepare a segue for a new view to be displayed. 
  Firstly in the xib interface. I was wondering if I could from my mapView (not in storyboard) prepare and call a view/segue(in story board) . 
  Or if I can simply drop or copy and paste my mapView into my storyboard and then draw my segue connectors to my new view. As I dont think it is necessarily for my to add the mapView to my "story line" however I still want to call is using the method posted above.
  However if none of these are feasible please suggest another method. 
  Thanks
  <strong>UPDATE</strong>
  I have moved my xib to my storyboard interface however i am facing a little problem</p>
  
  <p>When i called my map from the xib it would zoom in to a specific location supplied in the <code>init</code> method. I am passing in the same parameter but i am having a little trouble recreating my old results in my storyboard</p>
  
  <pre><code>    if ( ([receivedRainObject isEqualToString:@"Natural"])) {
  
   //    mapViewController *mapView=[[mapViewController       //alloc]initWithNibName:@"mapViewController" bundle:nil location:0 option:@"na"];
  
   //   self.navigationItem setHidesBackButton:NO animated:NO];
   //      [self.navigationController setNavigationBarHidden:NO animated:YES];
    //      [self.navigationController pushViewController:mapView animated:NO];
               [self performSegueWithIdentifier:@"countryMap" sender:self];   
      }
  </code></pre>
  
  <p><strong>Then in preparing the srgue</strong></p>
  
  <pre><code>-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  {
      if ([segue.identifier isEqualToString:@"countryMap"]) {
           mapViewController *transferViewController=segue.destinationViewController;
          transferViewController.location=0;
          transferViewController.option=@"na";
  
      }
  }
  </code></pre>
  
  <p><strong>Then in view did load of the map</strong>
  location does evaulate to 0 and the breakpoint shows me that all this code is being stepped thru but the region of the coordinates i supplied isnt what is being shown.( the the span or region) 
  (however when i call my old xib it works fine)</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
     {
  
      // Do any additional setup after loading the view from its nib.
  
      if (location==0)
      {
  
           CLLocationCoordinate2D location1;
           location1.latitude=(double)15.435786;
           location1.longitude=(double)-61.318447;
  
  
                      MKCoordinateRegion region;
                      MKCoordinateSpan span;
                      span.latitudeDelta=0.50;
                      span.longitudeDelta=0.40;
                      region.span=span;
                      region.center= location1;
  
                      [mapView setRegion:region animated:TRUE];
                      [mapView regionThatFits:region];
                 }
  }
  </code></pre>
  
  <p><strong>INIT of my mapview</strong></p>
  
  <pre><code>- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil location:(int)num option:(NSString *)row
  {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      if (self) {
          // Custom initialization
          self.location=num;
          self.option=row;
  
      }
      return self;
  }
  </code></pre>