Skip to content

`UIAlertController` subclass to show image above the alert title

Notifications You must be signed in to change notification settings

sunlyear/AlertViewController

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AlertViewController

Adds ability to display UIImage above the title label of UIAlertController. Functionality is achieved by adding “\n” characters to title, to make space for UIImageView to be added to UIAlertController.view. Set title as normal but when retrieving value use originalTitle property.

UIAlertAction+Extensions

Adds ability to display image left of the action title, by leveraging KVC. Also checks whether UIAlertAction responds to appropriate selector to avoid crashes if property is not available in the future.

stringcode.co.uk

@stringcode

About

`UIAlertController` subclass to show image above the alert title

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%