title: How to launch chrome browser while opening a link in iOS objective c
body: <p>Here is my code,</p>
  
  <p>How to open the link only via chrome browser?</p>
  
  <pre><code>NSString* url = @"some url";
  
  NSURL *inputURL = [NSURL URLWithString:url];
  NSString *scheme = inputURL.scheme;
  
  // Replace the URL Scheme with the Chrome equivalent.
  NSString *chromeScheme = nil;
  if ([scheme isEqualToString:@"http"]) {
      chromeScheme = @"googlechrome";
  } else if ([scheme isEqualToString:@"https"]) {
      chromeScheme = @"googlechromes";
  }
  
  // Proceed only if a valid Google Chrome URI Scheme is available.
  if (chromeScheme) {
      NSString *absoluteString = [inputURL absoluteString];
      NSRange rangeForScheme = [absoluteString rangeOfString:@":"];
      NSString *urlNoScheme =
      [absoluteString substringFromIndex:rangeForScheme.location];
      NSString *chromeURLString =
      [chromeScheme stringByAppendingString:urlNoScheme];
      NSURL *chromeURL = [NSURL URLWithString:chromeURLString];
  
      // Open the URL with Chrome.
      [[UIApplication sharedApplication] openURL:chromeURL];
  }
  </code></pre>
  
  <p>I have even added the following in .plist, </p>
  
  <pre><code>&lt;key&gt;LSApplicationQueriesSchemes&lt;/key&gt;
      &lt;array&gt;
          &lt;string&gt;googlechrome&lt;/string&gt;
      &lt;/array&gt;
  </code></pre>
  
  <p>But still it is not working.</p>