title: how to make a drop down list for iphone application
body: <p>I want to make a drop down list for iphone application i want that when user click it show list and when click on any button it shows that value and hides list i have implemented using the follwoing code but this work only for one value not for others</p>
  
  <pre><code>  @interface DropDownViewController : UIViewController {
  
  IBOutlet UILabel*ddText;
  IBOutlet UILabel*ddMenu;
  IBOutlet UIButton*ddMenuShowButton;
  
  
    }
  
   @property (nonatomic, retain) IBOutlet UILabel *ddText;
   @property (nonatomic, retain) IBOutlet UIView *ddMenu;
   @property (nonatomic,retain) IBOutlet UIButton *ddMenuShowButton;
   - (IBAction)ddMenuShow:(UIButton *)sender;
   - (IBAction)ddMenuSelectionMade:(UIButton *)sender;
   @end
  
  
  
   @implementation DropDownViewController
   @synthesize ddMenu, ddText;
   @synthesize ddMenuShowButton;
  
   - (IBAction)ddMenuShow:(UIButton *)sender
   {
      self.ddMenu.hidden = NO;
      [sender setTitle:@"▲" forState:UIControlStateNormal];
  
  
   }
  
   - (IBAction)ddMenuSelectionMade:(UIButton *)sender
  {
  
   self.ddText.text = sender.titleLabel.text;
  [self.ddMenuShowButton setTitle:@"▼" forState:UIControlStateNormal];
  
  
  self.ddMenu.hidden = YES;
  
    }
  </code></pre>
  
  <p>I have three button red grenn blue first is red it works only for red only not for others how to solve this i have used this following this tutorial</p>
  
  <p><a href="http://www.edumobile.org/iphone/iphone-programming-tutorials/a-simple-drop-down-list-for-iphone/" rel="nofollow">http://www.edumobile.org/iphone/iphone-programming-tutorials/a-simple-drop-down-list-for-iphone/</a></p>