Sometimes you'll want to open a full browser app from your application. In those cases, you can open a URL using the system's default browser±Safari. See how it works in this video.
- If you ever want to open up…another full browser application using your app,…you can do that using a system browser.…So here I have my "if let" that has my URL inside of it.…And here type UIapplication.shared.open.…That's going to allow you to open a URL.…Passing the URL, for options we're just passing an empty RA…and for completion handler, let's just put nil for now.…
So what this will do is open the system browser…than actually getting this notification right here.…And if I click on it, it says we can't use an empty RA,…we need to use an empty dictionary.…So just hit the fix button there and that will be fixed.…So we have an empty dictionary, run the application…and when you hit the button you should see that it opens up…Safari on the system level not a Safari view controller.…Hit the button and the false Safari application opens up.…
Let's go back to xcoding.…Hit the stop button.…So, whenever you want to open the full browser application…like Safari, you can do that by calling this line of code.…You reference the UI application,…
- Advanced UI controls
- Creating alert controllers
- Displaying web content
- Creating a collection view controller
- Creating a custom data type
- Creating tabbed apps
- Importing and setting icons for your apps
- Publishing your app to the App Store
Skill Level Beginner
iOS and watchOS App Development: Notificationswith Steven Lipton3h 45m Intermediate
1. Mastering Views
2. Display Web Content
3. Collection Views
4. Multi-View Templates
5. Publish an App
Next steps1m 21s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.