Working with UIAlertViewDelegate protocol methods in iOS @techytube
Working with UIAlertViewDelegate protocol methods in iOS  @techytube
Uploaded October 2012 | Updated September 2026, 2 weeks ago
Subscribe to our channel here for notifications on new video trainings. For more videos on technology, visit our website at http://www.techytube.com.
By pavel@techytube, for more from this author visit:
techytube.com/author/pavel

The UIAlertViewDelegate protocol defines the methods a delegate of a UIAlertView object should implement. The delegate implements the button actions and any other custom behavior. Some of the methods defined in this protocol are optional.

If you add your own buttons or customize the behavior of an alert view, implement a delegate conforming to this protocol to handle the corresponding delegate messages. Use the delegate property of an alert view to specify one of your application objects as the delegate.

If you add your own buttons to an alert view, the delegate must implement the alertView:clickedButtonAtIndex: message to respond when those buttons are clicked; otherwise, your custom buttons do nothing. The alert view is automatically dismissed after the alertView:clickedButtonAtIndex: delegate method is invoked.

Optionally, you can implement the alertViewCancel: method to take the appropriate action when the system cancels your alert view. If the delegate does not implement this method, the default behavior is to simulate the user clicking the cancel button and closing the view.

For more, you can visit the Apple's Online Documentation at:

developer.apple.com/library/ios/#documentation/uikit/reference/UIAlertViewDelegate_Protocol/UIAlertViewDelegate/UIAlertViewDelegate.html
Working with UIAlertViewDelegate protocol methods in iOS.NET 3.5/WPF Creating A Splash ScreenWindows 8 Development - Application DataYum (Yellow Dog Updater Modified) Part 4 of 4Working with UIPickerView class in iOSWindows 8 Development - Javascript App Bar IIVMWare PowerCliVMWare vShield AgentWindows 8 Development - Debugging State in Visual Studio 2012Windows 8 Development - Javascript ListView BindingWorking with UISegmentedControl class in iOSWindows 8 Development - XAML Blog Reader Code Review / Await Keyword
techytube |

Working with UIAlertViewDelegate protocol methods in iOS

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER