问题
I have a custom UIView in my application that I would like to make available to other applications to call using a url scheme. How would I accomplish this?
I’m able to call the application with a url scheme and it launches the application with the custom UIView, but it does not leave the calling application in place.
I would like to just create the custom UIView and have it display over a certain part of the screen in the calling application. Can this be done? I would also like to call this from a UIWebView with JavaScript window.location.
Thank You
回答1:
You can't display custom UIView over part of the screen on top of calling app. All you can do it add a url handler so your app comes to foreground when calling app initiates your custom url.
I'm not sure about your second question, but I would guess it won't work - why don't you try opening your custom url in a UIWebView?
来源:https://stackoverflow.com/questions/15719648/ios-url-scheme-launch-custom-uiview-inside-my-application