title: NSArray of NSDictionary - Returning NSDictionary when having only one dictionary in array, not Array of one object
body: <p>I am relatively new to Objective C. I have a NSArray containing NSDictionary objects. I am calling web service to fetch data. I have a PickerView and this is its DataSource (I have numberOfRows implemented):</p>
  
  <pre><code>- (NSString*)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component
   {
       NSString *proba = self.viewModel.searchResult.someArray[row];
       return nil;
  }
  </code></pre>
  
  <p>This is my 'proba' with 3 NSDictionaries in Array:</p>
  
  <p><img src="https://i.stack.imgur.com/zibwU.png" alt="enter image description here"></p>
  
  <p>This is my 'proba' with only 1 NSDictionary in Array</p>
  
  <p><img src="https://i.stack.imgur.com/YDuDA.png" alt="enter image description here"></p>
  
  <p>Problem is that I need to have 1 NSDictionoray object in Array when my service returns 1 Dictionary. How to fix this? Thanks</p>
  
  <p>EDIT:
  My array from service, this is my selector</p>
  
  <pre><code>- (void)SOAPManager:(SOAPManager *)client didSuccesWithoutError:(id)responseObject
  {
  SearchResult *result = [SearchResult new];
  result.myArray = [responseObject allValues];
  self.Result = result;
  NSLog(@"Loaded successfully: %@", result.retailers);
  
  }
  </code></pre>
  
  <p>'self.Result' is observed with RACObserver so I can use it my ViewModel. </p>
  
  <p>This is result.Retailers with 3 dictionaries:</p>
  
  <p><img src="https://i.stack.imgur.com/oY442.png" alt="enter image description here"></p>
  
  <p>And this with 1 dictionary:</p>
  
  <p><img src="https://i.stack.imgur.com/Mytbm.png" alt="enter image description here"></p>
  
  <p>So yeah, when only oneObject, it returns only Dictionary</p>