IOS url Scheme launch custom UIView inside my application

淺唱寂寞╮ 提交于 2020-01-16 11:39:53

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!