Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GSAlert 中文说明

If you want to use UIAlertController, but still need to support iOS 7 this project is for you.

Key Features

  • On iOS 7 GSAlert uses UIAlertView or UIActionSheet and on iOS 8 it uses UIAlertController.
  • Support iPad.

Example

Show alert in controller or view:

//
// - parameter type       : .Alert or .ActionSheet
// - parameter sourceView : iPad popover from
//
self.showAlert(.Alert, title: "This is Alert!", message: "some message...", sourceView: sender, actions: [
    AlertAction(title: "Cancel", type: .Cancel, handler: nil),
    AlertAction(title: "Sure", type: .Default) {
        print("I'm Alert.")
    }
])

Installation

Drag GSAlert folder to your project.

Requirements

  • iOS 7.0+

License

GSAlert is available under the MIT license. See the LICENSE file for more info.

About

[deprecated] UIAlertController support iOS 7+ and written in swift.

Resources

Stars

27 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages