{"id":2418,"url":"https://github.com/cwRichardKim/RKDropdownAlert","last_synced_at":"2025-08-02T23:33:35.883Z","repository":{"id":18734346,"uuid":"21945852","full_name":"cwRichardKim/RKDropdownAlert","owner":"cwRichardKim","description":"iOS / Objective C: an extremely simple UIAlertView alternative","archived":false,"fork":false,"pushed_at":"2017-04-16T20:15:17.000Z","size":335,"stargazers_count":1537,"open_issues_count":10,"forks_count":139,"subscribers_count":44,"default_branch":"master","last_synced_at":"2024-10-29T17:39:47.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://medium.com/@cwRichardKim/devux-uialertview-alternatives-3a78ab64cbf8","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/cwRichardKim.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-07-17T14:50:11.000Z","updated_at":"2024-08-20T02:00:33.000Z","dependencies_parsed_at":"2022-09-10T19:40:24.445Z","dependency_job_id":null,"html_url":"https://github.com/cwRichardKim/RKDropdownAlert","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwRichardKim%2FRKDropdownAlert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwRichardKim%2FRKDropdownAlert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwRichardKim%2FRKDropdownAlert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cwRichardKim%2FRKDropdownAlert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cwRichardKim","download_url":"https://codeload.github.com/cwRichardKim/RKDropdownAlert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503217,"owners_count":17930541,"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-01-05T20:16:13.285Z","updated_at":"2024-12-06T17:31:06.055Z","avatar_url":"https://github.com/cwRichardKim.png","language":"Objective-C","funding_links":[],"categories":["UI","Notification"],"sub_categories":["Alert \u0026 Action Sheet","Other free courses"],"readme":"RKDropdownAlert\n======================\n\nan extremely simple (and customizeable) alert alternative based on Facebook's app Slingshot, and inspiration from SVProgressHUD (yes, it's just as easy to use as SV).\n\n## Updates, Questions, and Requests\n[Support](http://cwrichardkim.com) or [twitter](https://twitter.com/cwRichardKim) \u003c--- I am a very light twitterer, so I wont spam you\n\n__Article comparing UIAlertView, SVProgressHUD and RKropdownAlert__\n\nhttps://medium.com/@cwRichardKim/devux-uialertview-alternatives-3a78ab64cbf8\n\n## Pod\nWAIT! Don't use pods if you want to customize or use the quick and easy [RKDropdownAlert show]\n\n\tpod 'RKDropdownAlert'\n\n## Demo:\n``` objc\n[RKDropdownAlert title:@\"Hello World\" message:@\"Tons better than UIAlertView!\"];\n```\n![alt tag](http://i.imgur.com/tE5p9L0.gif?1)\n\n## In Action:\n![first](http://i.imgur.com/d6voW3W.gif)  \n\n![second](http://i.imgur.com/OlYystx.gif)\n\n## Easy Default Call\n``` objc\n[RKDropdownAlert show];\n```\nSet the default text, color, size, font, etc so that when you call \"show\" it pulls up an easy default call\n\n![easy](http://i.imgur.com/M0cH5DF.gif?1)\n\n## Setup\n\n\nFirst, download the file, or create a branch of the repo. Copy the following into your parent controller:\n``` objc\n# import \"RKDropdownAlert.h\"\n```\n\nYou will probably want to customize the default call ([RKDropdownAlert show]), as well as other features such as color, the method called when the user taps the view, etc.  Look for\n``` objc\n//%%% CUSTOMIZE\n```\ntags in the RKDropdownAlert.m for methods that you should customize.\n\n\n## Calling the Alert\n\nUse the following variations of title, message, backgroundColor, textColor, and time\n``` objc\n+(void)show;\n+(void)title:(NSString*)title;\n+(void)title:(NSString*)title time:(NSInteger)seconds;\n+(void)title:(NSString*)title backgroundColor:(UIColor*)backgroundColor textColor:(UIColor*)textColor;\n+(void)title:(NSString*)title backgroundColor:(UIColor*)backgroundColor textColor:(UIColor*)textColor time:(NSInteger)seconds;\n\n+(void)title:(NSString*)title message:(NSString*)message;\n+(void)title:(NSString*)title message:(NSString*)message time:(NSInteger)seconds;\n+(void)title:(NSString*)title message:(NSString*)message backgroundColor:(UIColor*)backgroundColor textColor:(UIColor*)textColor;\n+(void)title:(NSString*)title message:(NSString*)message backgroundColor:(UIColor*)backgroundColor textColor:(UIColor*)textColor time:(NSInteger)seconds;\n```\n\nFor example:\n``` objc\n[RKDropdownAlert show];\n\n[RKDropdownAlert title:@\"this is a title\" message:@\"this is a one line message\"];\n\n[RKDropdownAlert title:@\"Hello World\" message:@\"tons better than UIAlertView\" backgroundColor:[UIColor grayColor] textColor:[UIColor whiteColor] time:10];\n```\n\n## Touch Up Inside Method\nWrite your own method for when the user touches the view (default is hide the view)\n\n``` objc\n@interface WhateverClassYouLike : NSObject \u003cRKDropdownAlertDelegate\u003e\n@end\n\n@implementation WhateverClassYouLike\n\n-(BOOL)dropdownAlertWasTapped:(RKDropdownAlert*)alert {\n\t// Handle the tap, then return whether or not the alert should hide.\n\treturn true;\n}\n\n@end\n\n```\n\n![alt tag](http://i.imgur.com/GaVlsT0.gif?1)\n\n### Areas for Future Improvement / Involvement\n* Improve architecture to maintain single line deployment while also allowing for attribute customization without changing physical code\n* Ability to change layout of text without changing physical code\n* Singleton pattern\n* More rigorous case testing for responsive design (making sure different text lengths still look good)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FcwRichardKim%2FRKDropdownAlert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FcwRichardKim%2FRKDropdownAlert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FcwRichardKim%2FRKDropdownAlert/lists"}