CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Dec 2014 |
Maintained by KITAGAWA Tatsuya.
TKAlertController supports both UIAlertView (or UIActionSheet) and UIAlertController.
UIAlertController show, ViewWillDisapper: is not called. (but in TKAlertController, it's called.)TKAlertController, as UIAlertController.UIViewController *alertController =
[TKAlertController alertControllerWithTitle:@"title"
message:@"message"
preferredStyle:TKAlertControllerStyleAlert];
TKAlertControllerStyleAlert is insted of UIAlertContollerStyleAlert.
and TKAlertControllerStyleActionSheet is instead of UIAlertControllerStyleActionSheet.
TKAlertAction as UIAlertAction.TKAlertAction *cancelAction =
[TKAlertAction actionWithTitle:kButtonTitleCancel
style:TKAlertActionStyleCancel
handler:^(TKAlertAction *action) {
// something to do.
}];
TKAlertAction *OKAction =
[TKAlertAction actionWithTitle:kButtonTitleOK
style:TKAlertActionStyleDestructive
handler:^(TKAlertAction *action) {
// something to do.
}];
[alertController addAction:cancelAction];
[alertController addAction:OKAction];
[self presentTKAlertController:alertController animated:YES completion:^{
//
}];
presentTKAlertController:animated:completion: is in category in UIViewController.
MIT