quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

NSScreencast Episode #117 URL Schemes

URL Schemes - NSScreencast

URL schemeで遷移して、URL上のwordをreverseするアプリ

  • 例 somestring://asdf , tel://123
  • build settings info
    • url types - url scheme
    • name collision
  • can jump from mobile safari
  • application openURL sourceApplication
    • NSString *word = [url host];
  • 遷移元アプリ VC
    • if (word.length > 0)
      • stringWithFormat:@"wordrev://%@"
      • if ([[UIApplication sharedApplication] canOpenURL:url]) {
        • [[UIApplication sharedApplication] openURL:url];