NSScreencast Episode #117 URL Schemes
URL schemeで遷移して、URL上のwordをreverseするアプリ
- 例 somestring://asdf , tel://123
- build settings info
- url types - url scheme
- name collision
- can jump from mobile safari
- wordref://asdf
- application openURL sourceApplication
- NSString *word = [url host];
- 遷移元アプリ VC
- if (word.length > 0)
- stringWithFormat:@"wordrev://%@"
- if ([[UIApplication sharedApplication] canOpenURL:url]) {
- [[UIApplication sharedApplication] openURL:url];
- if (word.length > 0)