Beginning Programming with iOS 11, Swift 4, and Xcode 9 - Alerts - raywenderlich.com
3,498 views · Published 2 November 2017 · 3:18 · Indexed 18 October 2026
Channel: Kodeco · 2017 · Education
Learn how to make the app display a popup alert when you tap a button. View the rest of the course here: https://videos.raywenderlich.com/courses/91-your-first-swift-4-ios-11-app/lessons/1 --- About www.raywenderlich.com: raywenderlich.com is a website focused on developing high quality programming tutorials. Our goal is to take the coolest and most challenging topics and make them easy for everyone to learn – so we can all make amazing apps. We are also focused on developing a strong community. Our goal is to help each other reach our dreams through friendship and cooperation. As you can see below, a bunch of us have joined forces to make this happen: authors, editors, subject matter experts, app reviewers, and most importantly our amazing readers! --- In apps that run in versions of iOS prior to iOS 8, use the UIAlertView class to display an alert message to the user. An alert view functions similar to but differs in appearance from an action sheet (an instance of UIActionSheet). SDK Overview UIAlertView is deprecated in iOS 8. (Note that UIAlertViewDelegate is also deprecated.) To create and manage alerts in iOS 8 and later, instead use UIAlertController with a preferredStyle of alert. Using an Alert View Use the properties and methods defined in this class to set the title, message, and delegate of an alert view and configure the buttons in apps that run in versions of iOS prior to iOS 8. You must set a delegate if you add custom buttons. The delegate should conform to the UIAlertViewDelegate protocol. Use the show() method to display an alert view after it is configured. Subclassing Notes The UIAlertView class is intended to be used as-is and does not support subclassing. The view hierarchy for this class is private and must not be modified.
More from this channel
-
0:28
The Ant and The Chrysalis | Wild Fables
-
0:45
Cocos2D Via Minigames Workshop Trailer
-
0:13
Wild Fables | Crane Neck Experiment
-
1:11
iOS Winter Wonderland
-
0:36
The Country Mouse and the City Mouse | Wild Fables
-
1:24
The iOS Christmas Song
-
1:13
iOS Games by Tutorials: Juice Your Game
-
1:00:36
January 2015 Tech Talk: WatchKit