title: How to get all months of a year in particular format
body: <p>How can i get all the months of a year in a table view in this particular format "January 2013" and so on. I need to set the starting month also. Below is the code i tried.</p>
  
  <pre><code>int mCurrentMonth = [dateComponents month];
  int mCurrentYear = [dateComponents year];
  
  NSString * dateString = [NSString stringWithFormat: @"%d",mCurrentMonth];
  
  NSDateFormatter* dateFormatter = [[NSDateFormatter alloc] init];
  [dateFormatter setDateFormat:@"MM"];
  NSDate* myDate = [dateFormatter dateFromString:dateString];
  
  NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
  [formatter setDateFormat:@"MMMM"];
  NSString *stringFromDate = [formatter stringFromDate:myDate];
  NSString *mon = [NSString stringWithFormat:@"%@ %d",stringFromDate, mCurrentYear];
  NSLog(@"month:%@", mon);
  </code></pre>
  
  <p>Above code is giving me only current month in required format. 
  Other way i tried is this</p>
  
  <pre><code>NSDateFormatter *df = [[NSDateFormatter alloc] init];
  
  for (int i = 0; i &lt; 12; i++){
      NSString *monthName = [[df monthSymbols] objectAtIndex:i];
      NSLog(@"months name:%@", monthName);
  }
  </code></pre>
  
  <p>This way i am getting all months name but not with year. I am not getting how to achieve the desired output that is January 2013 February 2013 and so on.</p>