title: Autofill city and state from zip code in iOS
body: <p>I have three textfields in my view. 
  1. Zip code, 2. City and 3. State.</p>
  
  <p>How to autofill city and state field from the zip code in iOS?</p>
  
  <pre><code>- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
  {
      NSString *currentString = [textField.text stringByReplacingCharactersInRange:range withString:string];
      int length = [currentString length];
      if(length &gt; 5)
      {
          return NO;
      }
      if(length == 5)
      {
          [self getCityAndState];
      }
      return YES;
  }
  
  - (void) getCityAndState
  {
      //How to use google (or any) api to autofill city and state in objective - c?
  }
  </code></pre>