Many apps share content with other applications. The object used to perform data sharing between apps is called an activity view controller. See how to use activity view controllers in this tutorial.
- [Instructor] Many iOS apps support sharing data…to other applications.…For example, in the Contacts application,…if you're on a contact, when you see the button…Share Contact, you can tap that button…to share that contact information with another app,…including the Messages app or the Mail app…or any other app that can receive contact data.…Let's take a look at how that works…when you're creating your own apps.…Here I have a very simple application that has…a text view and a button that says Share on it.…
I've already connected these from my storyboard…to my code, so I've made those connections,…and they're connected to my View controller class,…so we have this textView property here for the text view…and the shareText action.…So what we want to do is when we tap the Share button…we can share any text that's within the text view.…And this of course applies to any type of data…that you want to share.…As long as another app supports it on your device,…that data can be shared with that app.…
So again, it's not limited to sharing strings.…
- Alert controllers and actions
- Sliders, progress bars, and switches
- Creating UI elements with code
- Displaying web content with Safari view controllers and WKWebView
- Creating collection view controllers
- Creating tabbed apps
- Publishing your app with App Store Connect
Skill Level Beginner
1. Master Views
2. Display Web Content
3. Collection Views
4. Multiview Templates
Customize a table view cell4m 18s
5. Publish an App
Next steps3m 28s
- 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.