Created
April 19, 2014 10:02
-
-
Save g-1/11079869 to your computer and use it in GitHub Desktop.
iOS7でカスタムURLスキームでMapアプリに遷移する。 ref: http://qiita.com/g-1/items/75cfc474e15d4b22e1e9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString* q = @"http://maps.apple.com/maps?q='渋谷駅'"; | |
NSURL* url = [NSURL URLWithString:[q stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; | |
[[UIApplication sharedApplication] openURL:url]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment