title: will self.navigationItem.rightBarButtonItem support Array?
body: <p>i want to include segmented control in navigation item with flexible space.bcos it has 2 control .. i want to bring in the center....i tried follow .. will u help ? ...the line...</p>
  
  <pre><code>self.navigationItem.rightBarButtonItem = [NSArray   arrayWithObjects:segmentBarItem,flexibleSpaceButtonItem,nil];
  </code></pre>
  
  <p>gives error?</p>
  
  <pre><code> UIBarButtonItem *segmentBarItem = [[UIBarButtonItem alloc] 
   initWithCustomView:segmentedControl];
  
  [segmentedControl release];
  
  UIBarButtonItem *flexibleSpaceButtonItem = [[UIBarButtonItem alloc]
      initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace
  target:nil action:nil];
  
  self.navigationItem.rightBarButtonItem = [NSArray arrayWithObjects:segmentBarItem,flexibleSpaceButtonItem,nil];
  </code></pre>