title: connecting my objects on Map with data
body: <p>I have application that shows objects on map for iPhone and iPad. </p>
  
  <p>My problem is how to connect those objects with description from sqlite database in order to go from Map when I click on info for pin to page with description and everything else.</p>
  
  <p>i manage to add button:</p>
  
  <pre><code>UIButton* rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
      [rightButton setTitle:annotation.title forState:UIControlStateNormal];
      [rightButton addTarget:self
                      action:@selector(showDetails:)
            forControlEvents:UIControlEventTouchUpInside];
      annView.rightCalloutAccessoryView = rightButton;
  </code></pre>
  
  <p>I also added in viewDid load alloc and init for that view controller:</p>
  
  <pre><code>  self.details = [[[RestaurantDetails alloc]init]autorelease];
  </code></pre>
  
  <p>But now when I press button on annotation it only shows me blank screen. </p>
  
  <p>Can someone tell me how to pull data from sqlite database to show it on screen. I need logic of that process. :)</p>
  
  <p>Thanks.</p>