{"id":18270613,"url":"https://github.com/ajerez/AJNotificationView","last_synced_at":"2025-04-05T01:30:44.172Z","repository":{"id":4224517,"uuid":"5346756","full_name":"ajerez/AJNotificationView","owner":"ajerez","description":"Notice component for iOS (UNMAINTAINED CODE)","archived":false,"fork":false,"pushed_at":"2013-09-01T18:38:14.000Z","size":168,"stargazers_count":304,"open_issues_count":2,"forks_count":41,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-03-23T12:18:28.846Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ajerez.png","metadata":{"files":{"readme":"Readme.markdown","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":"2012-08-08T19:58:36.000Z","updated_at":"2025-02-24T06:35:20.000Z","dependencies_parsed_at":"2022-08-27T12:30:30.568Z","dependency_job_id":null,"html_url":"https://github.com/ajerez/AJNotificationView","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajerez%2FAJNotificationView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajerez%2FAJNotificationView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajerez%2FAJNotificationView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajerez%2FAJNotificationView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajerez","download_url":"https://codeload.github.com/ajerez/AJNotificationView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276032,"owners_count":20912285,"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-05T11:38:45.977Z","updated_at":"2025-04-05T01:30:43.639Z","avatar_url":"https://github.com/ajerez.png","language":"Objective-C","readme":"# AJNotificationView\n\n__Notice component for iOS__\n\n- No images needed, all CoreGraphics code\n- Works on iPhone and iPad (resolution independent)\n- Animated background type\n- Only one notification is shown at\na time. When a notification is created, it is added to the queue. If it is the\nonly notification in the queue, then its delay interval is honored. If it is not\nthe only notification in the queue, it is placed at the end of the queue, and\nthen displayed without a delay once it reaches the front of the queue (Thanks to @DazeEnd).\n\n\n\u003cdiv class=\"macbuildserver-block\"\u003e\n    \u003ca class=\"macbuildserver-button\" href=\"http://macbuildserver.com/project/github/build/?xcode_project=AJNotificationViewDemo%2FAJNotificationViewDemo.xcodeproj\u0026amp;target=AJNotificationViewDemo\u0026amp;repo_url=git%3A%2F%2Fgithub.com%2Fajerez%2FAJNotificationView.git\u0026amp;build_conf=Release\" target=\"_blank\"\u003e\u003cimg src=\"http://com.macbuildserver.github.s3-website-us-east-1.amazonaws.com/button_up.png\"/\u003e\u003c/a\u003e\u003cbr/\u003e\u003csup\u003e\u003ca href=\"http://macbuildserver.com/github/opensource/\" target=\"_blank\"\u003eby MacBuildServer\u003c/a\u003e\u003c/sup\u003e\n\u003c/div\u003e\n\n### [__Video demo__](https://vimeo.com/47447275)\n\n![AJNotificationView](https://raw.github.com/ajerez/AJNotificationView/master/screenshot.png)\n\n![AJNotificationView](https://raw.github.com/ajerez/AJNotificationView/master/screenshot2.png)\n\n\n## Example Usage\n\nAdd __QuartzCore.framework__ and drop the __AJNotificationView__ folder in your project\n\n\n\n``` objective-c\n//Blue notification with animated lined background. Hides after 2,5 seg\n[AJNotificationView showNoticeInView:[[[UIApplication sharedApplication] delegate] window]\n                                type:AJNotificationTypeBlue\n                               title:@\"Test notification\"\n                     linedBackground:AJLinedBackgroundTypeAnimated\n                           hideAfter:2.5f];\n```\n\n\n``` objective-c\n// Orange notification without lined background. Remains visible until the user taps in it, or you call hide method\nAJNotificationView *panel = [AJNotificationView showNoticeInView:[[[UIApplication sharedApplication] delegate] window]\n                                type:AJNotificationTypeOrange\n                               title:@\"Test notification\"\n                     linedBackground:AJLinedBackgroundTypeDisabled\n                           hideAfter:0];\n//Your code\n[panel hide];\n```\n\n\n``` objective-c\n// Notification with delay, offset and response block that's called when the user tap in it.\n//Thanks to @DazeEnd for this awesome features\n[AJNotificationView showNoticeInView:[[[UIApplication sharedApplication] delegate] window]\n                                    type:AJNotificationTypeBlue\n                                   title:@\"Oppa Gangnam Style!\"\n                         linedBackground:AJLinedBackgroundTypeDisabled\n                               hideAfter:2.5f\n                                  offset:50.0f\n                                   delay:1.0f\n                                response:^{\n                                    NSLog(@\"User tap in the notification\");\n                                }\n    ];\n```\n\n\n``` objective-c\n// Notification with delay, offset, response block and detail disclosure button that send a notification when the user tap in it\n//Thanks to @smoothdvd for this last feature\n\n//In viewDidLoad register the NSNotification\n- (void)viewDidLoad {   \n    [[NSNotificationCenter defaultCenter] addObserver:self\n                                             selector:@selector(detailDisclosureButtonPressed:)\n                                                 name:@\"detail_disclosure_button_pressed\"\n                                               object:nil];\n   [super viewDidLoad];\n}\n\n//...\n//Function that's called when the NSNotification is fired\n- (void)detailDisclosureButtonPressed:(NSNotification*)notification {\n    NSLog(@\"Detail disclosure button pressed\");\n}\n\n//...\n//The code for show the AJNotificationView\n\n    [AJNotificationView showNoticeInView:self.view\n                                    type:AJNotificationTypeBlue\n                                   title:@\"Detail disclosure notification\"\n                         linedBackground:AJLinedBackgroundTypeAnimated\n                               hideAfter:2.5f\n                                  offset:0.0f\n                                   delay:0.0f\n                        detailDisclosure:YES\n                                response:^{\n                                    NSLog(@\"Response block\");\n                                }\n     ];\n```\n\n\nThere are several __notification styles__ to choose from:\n\n* `AJNotificationTypeDefault` _\u003c-- Gray_\n* `AJNotificationTypeBlue`\n* `AJNotificationTypeRed`\n* `AJNotificationTypeGreen`\n* `AJNotificationTypeOrange`\n\nAnd background types:\n\n* `AJLinedBackgroundTypeDisabled`\n* `AJLinedBackgroundTypeStatic` _\u003c-- Default_\n* `AJLinedBackgroundTypeAnimated`\n\n\n## Future improvements\n\n* Code rafactoring\n* More background colors (Notification styles)\n\n## Inspiration\n\n* Thanks to Eli Perkins for [__YRDropDownView__](https://github.com/onemightyroar/YRDropdownView)\n* Thanks to Tito Ciuro for [__NoticeView__](https://github.com/tciuro/NoticeView)\n\n\n## Contact\nTwitter: [@alberto_jrz](https://twitter.com/alberto_jrz)\n\n## License - MIT\n\n\nCopyright (c) 2012 Alberto Jerez - [CodeApps](http://www.codeapps.es/)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajerez%2FAJNotificationView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajerez%2FAJNotificationView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajerez%2FAJNotificationView/lists"}