Hello everyone, I would love some help.
I am updating an older app using xcode 9 in high sierra. I got through all the needed changes, except for one and it is making me crazy. I have a few buttons that go to webpages. The code to open them was super simple, but now I get the message "'openURL' was deprecated in iOS 10.0: Please use openURL:options:completionHandler: instead." I have been all over the net looking for examples and trying to edit my code to work, and I can't get anything to work.
All I want to do is open the web pages. These are a few resources for the app user and though I can tell them the url in the help area, I'd like them to be able to tap a link to go there. I previously handled this with 3 buttons wired to open the 3 pages. Now I can't get a page to open and I'm on the verge of using a TSI, but I don't want to burn one just for this. I guess on the upside, the apple support engineers would get a huge laugh. =)
Using apple.com, I would be very grateful if someone would please post the code to open a URL. Better yet, if someone could post both ways, namely how to do it by launching safari and opening it (taking them out of the app) and how to open it within the app. Also, any opinions on which way is best?
Lisa