Posts

Post not yet marked as solved
3 Replies
1.6k Views
First post here. Thanks for your help.I am presenting an "About" screen in my app, which contains two labels and a UITextView. One of the lines in my UITextView is a URL to my webpage, so it's like: blah blah blah www.myWebPage.com blah blah blahWhen the About page is supposed to be displayed, the link is opened immediately (in Safari) when the About page itself hasn't even been displayed yet. I can press the "< myapp" in the top left corner of Safari to go back to my waiting About page.I have tried turning off "Links" in the "Data Detectors" field. That makes the link un-clickable for the user when the page is displayed, but doesn't stop iOS from opening the URL immediately as described.I have tried returning Bool false from the UITextView shouldInteractWithURL() delegate function. Again, it stops a user-click from going to the link but does not stop the URL from being loaded before my page is displayed (because the delegate isn't even called before the link is opened).I have tried putting the complete text for the UITextView in Main.storyboard and tried added it programatically in viewDidLoad(). No difference.This happens both in the simulators and on my iPhone Xs running iOS 13.2.Thanks for any insights. Barry
Posted Last updated
.