title: using openURL to jump to Baidu Map app from within an ios app
body: <p>I am using the following API :</p>
  <blockquote>
  <p>[[UIApplication sharedApplication] openURL: options:
  completionHandler: ];</p>
  </blockquote>
  <p>The argument to openURL is generated by the following example format string :</p>
  <blockquote>
  <p>@&quot;baidumap://map/direction?origin=latlng:%f,%f |
  name:我的位置&amp;destination=latlng:%f,%f|name:终点&amp;mode=driving&quot;</p>
  </blockquote>
  <p>The app runs smoothly during runtime but fails to invoke baidumap.</p>
  <p>Have attached an anonymous fuction to completionHandler :</p>
  <blockquote>
  <p>^(BOOL success)
  {
  if (success)
  NSLog(@&quot;Invoke success = 1&quot;);
  else
  NSLog(@&quot;Invoke success = 0&quot;);
  }</p>
  </blockquote>
  <p>The augument passes in via &quot;BOOL sucess&quot; is always 0.</p>
  <p>I suspect that the problem comes from the format string.</p>
  <p>Hope that somebody who is familiar with Baidu map API can give me some help.</p>