title: Move to another view controller when the pin map tapped in objective-c
body: <p>I have multi pin on my map (for restaurants), I would like to be directed on a view controller which would present the details of the restaurant tapped (every restaurant has an id).</p>
  
  <p>Objective: When I click on the a restaurant pin I want to go to that detail ViewController (that loads with the id of that restaurant)</p>
  
  <p>This is my code </p>
  
  <pre><code>-(void)addAnnotationAtLat: (float)lat long:(float)longi titreEvent:(NSString *)titre sousTitreEvent:(NSString *)sousTitre
  {
  MKCoordinateRegion Bridge = { {0.0, 0.0} , {0.0, 0.0} }; 
  Bridge.center.latitude = lat;
  Bridge.center.longitude = longi;
  Bridge.span.longitudeDelta = 0.01f;
  Bridge.span.latitudeDelta = 0.01f;
  
  MKPointAnnotation *ann = [[MKPointAnnotation alloc] init];
  ann.title = titre;
  ann.subtitle = sousTitre;
  ann.coordinate = Bridge.center;
  [_mapResto addAnnotation:ann];
  }
  
  
  -(void)placeRestaurantSurLaCarte: (NSTimer *)timer{
  PFQuery *query = [PFQuery queryWithClassName:@"Restaurant"];
  self.restauArray = [[query whereKey:@"adresse" nearGeoPoint:self.point withinKilometers:100] findObjects];
  for (PFObject *restau in self.restauArray) {
  NSArray *boxes = restau[@"boxes"];
  PFGeoPoint *coordinate = restau[@"adresse"];
  [self addAnnotationAtLat:coordinate.latitude long:coordinate.longitude titreEvent:restau[@"nom"] sousTitreEvent:[NSString stringWithFormat:@"Nombre de boxe disponible :%lu",(unsigned long)boxes.count]];
  }
  </code></pre>
  
  <p>Could you please give me any help ?</p>