Click here to Skip to main content
16,016,750 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello
Using Objective C, I'm creating an app that initially loads Safari. The landing page is something like www.mypage.com. When a user click on a button, in Safari, it redirects them to a new page something called, www.anotherpage.com.

Is there a way to grab the url from the url address bar in Safari using the SFSafariViewController? I want to be able to compare the two web pages www.mypage.com and www.anotherpage.com by doing a string comparison.

What I have tried:

I've tried looking for a delegate in SFSafariViewController or something else like NSMutable or NSURL to grab the url.

Thanks
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900