title: How to pass parameters to controller in object oriented style
body: <p>When a photo is clicked I check It's category and call a http request function and 
  configure its parameters according to photos category. Here is a simplified code:</p>
  
  <pre><code>- (void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  {
      Item *item = (Item *) [self.recentItems objectAtIndex:indexPath.row];
  
      if ( [item.Type  isEqual: @"typeA"] ) {
           connectionProperties.P1 = "A1"
           connectionProperties.P2 = "A2"
      }
      else if ( [item.Type  isEqual: @"typeB"] ){
           connectionProperties.P1 = "B1"
           connectionProperties.P3 = "B2"
           connectionProperties.P4 = "B3"
      }
   }
  
     albumDataController = [[AlbumDataController alloc] initWithConnectionProperty:connectionProperties andCommunicator:self.comm];
  
  
  [albumDataController fetchItemsForCategory:category
              ItemsSuccess:^(Album *album) {
  
                  photos = [[NSArray alloc] initWithArray:album.photos];
  
                  PhotoViewController *photoViewController = [[PhotoViewController alloc] initWithPhotos:photos];
  
  
                  [self presentViewController: photoViewController animated:YES completion:nil];
  
  
              }
  
  }
  </code></pre>
  
  <p>I know this is not object oriented way.  How should I realize this in object oriented way.</p>