application openURL in Swift

前端 未结 3 773
囚心锁ツ
囚心锁ツ 2021-01-18 13:57

I am having an issue with the Appdelegate method OpenURL.

I have setup my Imported UTI\'s and Document Type. But when opening my app from a mail attachment, the app

3条回答
  •  爱一瞬间的悲伤
    2021-01-18 14:43

    This is fairly typical of a signature mismatch between the method signatures automatically generated by the Swift compiler and the actual signature. It happens when you try to pass nil from Objective-C into a Swift explicitly unwrapped optional. Change the annotation parameter to be implicitly unwrapped and you should be gtg.

提交回复
热议问题