In iOS, popup messages are called alert controllers. In this video, see how to create alert controllers and how to make them appear on screen.
- [Instructor] The alert controller is one of the most…common user interface elements in iOS.…An example of an alert controller can be seen…in the context application when you tap the button…to send a message.…If the user has multiple phone numbers,…as this person does, you'll see those multiple numbers…pop up along with a cancel button.…This is an example of an alert controller.…An alert can appear in this way,…which is called an action sheet,…or as an alert which appears in the center of a screen.…
Let's take a look at how to create these.…I'll cancel out and head over to Xcode.…In Xcode I have a blank project…and I'm going to add a button to it in my storyboard.…So I'll click the library button,…filter for button, and double click on it…to add one to the screen.…I'll change the text of the button by double-clicking it…typing out show alert…and I'll hit return to commit the change.…And that looks like a good spot for the button.…Now let's open up the assistant editor…and get that view controller class on the right side…
- 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.