How to register an app to respond to a custom URL scheme opening request?

后端 未结 2 1151
醉酒成梦
醉酒成梦 2020-12-04 02:27

Like this:

NSString *stringURL = @\"appname://\";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
相关标签:
2条回答
  • 2020-12-04 02:42

    Add this to plist screenshot.

    The app will by called by @"readtext://" url

    0 讨论(0)
  • 2020-12-04 02:58

    This seems to be the question that I answered (with screenshots & source code) here.

    enter image description here

    And I've posted a full walkthrough of how to do this on my blog.

    0 讨论(0)
提交回复
热议问题