share

Sharing button works perfectly on iPhone but crash on iPad

℡╲_俬逩灬. 提交于 2020-07-23 17:32:22
问题 I'm trying to add a button in order to share some sentences in Twitter, Facebook... etc. It all works on all iPhone models but simulator crash with an iPad. This is my code: @IBAction func shareButton(sender: AnyObject) { frase = labelFrases.text! autor = labelAutores.text! var myShare = "\(frase) - \(autor)" let activityVC: UIActivityViewController = UIActivityViewController(activityItems: [myShare], applicationActivities: nil) self.presentViewController(activityVC, animated: true,

Sharing button works perfectly on iPhone but crash on iPad

北战南征 提交于 2020-07-23 17:30:06
问题 I'm trying to add a button in order to share some sentences in Twitter, Facebook... etc. It all works on all iPhone models but simulator crash with an iPad. This is my code: @IBAction func shareButton(sender: AnyObject) { frase = labelFrases.text! autor = labelAutores.text! var myShare = "\(frase) - \(autor)" let activityVC: UIActivityViewController = UIActivityViewController(activityItems: [myShare], applicationActivities: nil) self.presentViewController(activityVC, animated: true,

How to view and share a pdf from an URL in a react native app?

╄→гoц情女王★ 提交于 2020-07-22 05:23:09
问题 I have a use-case in my react native app wherein I have to load and display a pdf from an endpoint and also share the same as an attachment(to Gmail app or WhatsApp or even download it) using the native share options (both ios and Android). I'm currently using the react-native-pdf library to load and show the pdf on the app and it's working fine. The problem is with the share option. I tried using facebook's Share API to achieve this but unfortunately, it doesn't serve my purpose as the pdf

Error 1312 from net use when mapping samba share

左心房为你撑大大i 提交于 2020-07-20 08:55:25
问题 I have written a service that monitors if my app is running and starts it if not. In result the app is run as a "system" user - which is the way I want it to be. I have several of those installations working properly. The app should mount a network share that is in this case available on a linux samba server. The problem is that when running the command: net use X: \\IP\share_name /user:login password an error is displayed: System error 1312 has occured. A specified logon session does not