Posts

Post not yet marked as solved
0 Replies
429 Views
What is wrong with my code? My iPad App will not launch the share sheet. Because I am using a tab bar controller. It works fine on iPhone and when the iPad is in Multi-app Mode. But Fails if it takes 50% or more of the screen.         let ShareTxtName = nameTextField.text ?? ""         let ShareDiscTxt = rdiscbox.text ?? ""        // let SharePhoto = photoImageView.image         let ShareEtaTxt = CookETA.text ?? ""         let ShareTxtICB = " \nCreated in iChefBook"         print(ShareTxtName + "\n" + ShareEtaTxt + "\n" + ShareDiscTxt + "\n" + ShareTxtICB)                  let text = ShareTxtName + "\n" + ShareEtaTxt + "\n" + ShareDiscTxt + "\n" + ShareTxtICB         let textShare = [ text ]         let activityViewController = UIActivityViewController(activityItems: textShare , applicationActivities: nil)                  activityViewController.popoverPresentationController?.sourceView = self.view         self.present(activityViewController, animated: true, completion: nil)                       }
Posted Last updated
.