URL scheme for opening native calendar with specific date

前端 未结 4 2046
天命终不由人
天命终不由人 2020-12-09 17:51

I have found the sample code to open calendar from my app, but i can\'t open at a specific date.

NSString* launchUrl = @\"calshow://\";
[[UIApplication share         


        
4条回答
  •  难免孤独
    2020-12-09 18:22

    Swift 3

    UIApplication.shared.openURL(URL(string: "calshow:\(date.timeIntervalSinceReferenceDate)")!)
    

    Comments on whether Apple allows to use this would be appreciated!

提交回复
热议问题