title: how to create an array of string or float in Objective-C
body: <p>i need some help here, i need to know how to create an array of string retrieved from an array. i'm using powerplot for graph and it only accept float or string array.</p>
  
  <p>i need to create something something like this dynamically.  </p>
  
  <p>NSString * sourceData[7] = {@"2", @"1", @"4", @"8", @"14", @"15", @"10"};</p>
  
  <p>Below are my code to find out the numbers in strings.</p>
  
  <pre><code>NSInteger drunked = [appDelegate.drinksOnDayArray count];
  NSMutableArray * dayArray = [[NSMutableArray alloc] init];
  NSMutableArray * sdArray = [[NSMutableArray alloc] init];
  //float *sdArray[7];
  
  
  for (int i=0; i&lt;drunked; i++) {
      DayOfDrinks *drinksOnDay = [appDelegate.drinksOnDayArray objectAtIndex:i];
      NSString * dayString= [NSDate stringForDisplayFromDateForChart:drinksOnDay.dateConsumed];
      [dayArray addObject:dayString];
      NSLog(@"%@",[dayArray objectAtIndex:i]);
  
      drinksOnDay.isDetailViewHydrated = NO;
      [drinksOnDay hydrateDetailViewData];
  
      NSString * sdString= [NSString stringWithFormat:@"%@", drinksOnDay.standardDrinks];
      [sdArray addObject:sdString];
  
      NSString *tempstring;
      NSLog(@"%@",[sdArray objectAtIndex:i]);
  
  }
  </code></pre>
  
  <p>thanks for the help :)</p>