title: How to load a picker view by a for loop?
body: <p>I want load my picker by a for loop.From 1 to 999.I loaded manually.</p>
  
  <p>My code is here.How I use a "for loop" for load automaticaly. Thanks</p>
  
  <pre><code>- (void)numberWasSelected:(NSNumber *)selectedIndex element:(id)element;
  
  @synthesize numbers = _numbers;
  
  @synthesize selectedIndex = _selectedIndex;
  
  self.numbers = [NSArray arrayWithObjects:@"1", @"2", @"3",............@"999" nil];
  
  - (IBAction)selectNumbers:(UIControl *)sender {
  [ActionSheetStringPicker showPickerWithTitle:@"Select a number !" rows:self.numbers  
  initialSelection:self.selectedIndex target:self    
  successAction:@selector(numberWasSelected:element:) 
  cancelAction:@selector(actionPickerCancelled:) origin:sender];
  
  }
  
   - (void)numberWasSelected:(NSNumber *)selectedIndex element:(id)element {
  self.selectedIndex = [selectedIndex intValue];
  
  
  self.numberTextField.text = [self.numbers objectAtIndex:self.selectedIndex];
  
    }
  </code></pre>