{"id":19806041,"url":"https://github.com/pablosproject/ptalertview","last_synced_at":"2026-05-14T04:39:44.994Z","repository":{"id":21295992,"uuid":"24612161","full_name":"pablosproject/PTAlertView","owner":"pablosproject","description":"A simple category that add basic alert view management using blocks. ","archived":false,"fork":false,"pushed_at":"2014-09-30T09:26:54.000Z","size":220,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T11:53:10.615Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pablosproject.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-29T20:40:37.000Z","updated_at":"2015-05-09T01:19:56.000Z","dependencies_parsed_at":"2022-08-20T16:40:39.065Z","dependency_job_id":null,"html_url":"https://github.com/pablosproject/PTAlertView","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablosproject%2FPTAlertView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablosproject%2FPTAlertView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablosproject%2FPTAlertView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablosproject%2FPTAlertView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pablosproject","download_url":"https://codeload.github.com/pablosproject/PTAlertView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241150243,"owners_count":19918334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T09:06:17.677Z","updated_at":"2026-05-14T04:39:44.964Z","avatar_url":"https://github.com/pablosproject.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PTAlertView\n\n[![Version](https://img.shields.io/cocoapods/v/PTAlertView.svg?style=flat)](http://cocoadocs.org/docsets/PTAlertView)\n[![License](https://img.shields.io/cocoapods/l/PTAlertView.svg?style=flat)](http://cocoadocs.org/docsets/PTAlertView)\n[![Platform](https://img.shields.io/cocoapods/p/PTAlertView.svg?style=flat)](http://cocoadocs.org/docsets/PTAlertView)\n\nThis is a simple category of UIAlertView that simplify the basic usage of alerts with blocks. It uses *AssociatedObject* to handle delegate's method.\n\n## Usage\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n##Example\n\nYou could use the category by importing it and instantiate a new alert with the provided initialization method.    \nThis method takes the titles of the confirmation and cancel buttons and a block for every case.  \nIf you **not** provide a title for the cancel button, the alert will only show the confirmation button.\n```objective-c\n#import \u003cUIAlertView+Blocks.h\u003e\n\n/*\n\tAlert with two buttons\n*/\n    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@\"Alert\"\n                                                    message:@\"This is a test with block\"\n                                         confirmButtonTitle:@\"Ok\"\n                                         confirmButtonBlock:^{\n                                             NSLog(@\"Confirmation pressed\");\n                                         }\n                                          cancelButtonTitle:@\"Cancel\"\n                                          cancelButtonBlock:^{\n                                              NSLog(@\"Cancel pressed\");\n                                          }];\n    [alert show];\n    \n/*\n\tAlert with one button\n*/\n\t    UIAlertView *singleAlert = [[UIAlertView alloc] initWithTitle:@\"Alert\"\n                                                    message:@\"This is a test with block\"\n                                         confirmButtonTitle:@\"Ok\"\n                                         confirmButtonBlock:^{\n                                             NSLog(@\"Confirmation pressed\");\n                                         }\n                                          cancelButtonTitle:nil\n                                          cancelButtonBlock:nil];\n    [singleAlert show];\n\n}\n\n```\n\n## Installation\n\nPTAlertView is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n    pod \"PTAlertView\"\n\n## Author\n\nPaolo Tagliani, pablosproject@gmail.com\n\n## License\n\nPTAlertView is available under the MIT license. See the LICENSE file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablosproject%2Fptalertview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpablosproject%2Fptalertview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablosproject%2Fptalertview/lists"}