title: How to hide drop down list when clicked outside in iphone
body: <p>Programmaticaly how can we close or hide drop down list when clicked outside in iphone?</p>
  
  <pre><code>-(void)RecommendDropDownSelect
  {
  dropDown=[[DropDownView alloc]initWithArrayData:arr_RecommendName  cellHeight:30 heightTableView:100 paddingTop:-100 paddingLeft:10 paddingRight:20 refView:txt_Recommend animation:BLENDIN openAnimationDuration:0.5 closeAnimationDuration:0.5];
  dropDown.delegate=self;
  [scr_View addSubview:dropDown.view];
  [dropDown openAnimation];
  
  
  btn_RecommendDropDown.enabled=NO;
  }
  
  -(void)dropDownCellSelected:(NSInteger)returnIndex
  {
  btn_RecommendDropDown.enabled=YES;
  txt_Recommend.text=[arr_RecommendName objectAtIndex:returnIndex];
  
  }
  </code></pre>