Let's say I have registered several schemes as appropriate for my app, such as text file and PDF.
I open an attached file in the mail app. My app is invoked, and the handleOpenURL method is fired with an URL.
Do I have to (crudely) parse the URL, or.. what?
You can call the NSURL
method getResourceValue:forKey:error:
with the NSURLTypeIdentifierKey
to get the uniform type identifier (UTI) of the file passed to the application.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다