{"id":2672,"url":"https://github.com/chenzeyu/CZPicker","last_synced_at":"2025-08-03T00:32:16.883Z","repository":{"id":56905523,"uuid":"38130831","full_name":"chenzeyu/CZPicker","owner":"chenzeyu","description":"a picker view shown as a popup for iOS in Objective-C","archived":false,"fork":false,"pushed_at":"2024-03-09T15:13:29.000Z","size":2308,"stargazers_count":526,"open_issues_count":8,"forks_count":90,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-04-24T14:50:52.224Z","etag":null,"topics":["ios","picker","swift"],"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/chenzeyu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2015-06-26T19:57:16.000Z","updated_at":"2024-04-18T12:16:53.000Z","dependencies_parsed_at":"2024-04-24T11:01:40.913Z","dependency_job_id":"b8ee5a38-983e-4cdb-9f90-01d3a815c61c","html_url":"https://github.com/chenzeyu/CZPicker","commit_stats":{"total_commits":79,"total_committers":4,"mean_commits":19.75,"dds":"0.10126582278481011","last_synced_commit":"953fc090ec397ff4030b2d2dabf764f5fc52c2d4"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenzeyu%2FCZPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenzeyu%2FCZPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenzeyu%2FCZPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenzeyu%2FCZPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenzeyu","download_url":"https://codeload.github.com/chenzeyu/CZPicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228510764,"owners_count":17931760,"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":["ios","picker","swift"],"created_at":"2024-01-05T20:16:19.802Z","updated_at":"2024-12-06T18:30:39.857Z","avatar_url":"https://github.com/chenzeyu.png","language":"Objective-C","funding_links":[],"categories":["UI"],"sub_categories":["PickerView","Layout","Other free courses"],"readme":"# CZPicker\n\n[![CI Status](http://img.shields.io/travis/chenzeyu/CZPicker.svg?style=flat)](https://travis-ci.org/chenzeyu/CZPicker)\n[![Version](https://img.shields.io/cocoapods/v/CZPicker.svg?style=flat)](http://cocoapods.org/pods/CZPicker)\n[![License](https://img.shields.io/cocoapods/l/CZPicker.svg?style=flat)](http://cocoapods.org/pods/CZPicker)\n[![Platform](https://img.shields.io/cocoapods/p/CZPicker.svg?style=flat)](http://cocoapods.org/pods/CZPicker)\n\n## Demo\n![](demo.gif)\n\n## Change Log\n3 most recent changes are listed here.\n\nFull [change logs](CHANGELOG.md)\n\n### v0.4.3 - 2016-08-12\n\n- Added ```- (void)czpickerViewWillDisplay:(CZPickerView *)pickerView;```\n- Added ```- (void)czpickerViewDidDisplay:(CZPickerView *)pickerView;```\n- Added ```- (void)czpickerViewWillDismiss:(CZPickerView *)pickerView;```\n- Added ```- (void)czpickerViewDidDismiss:(CZPickerView *)pickerView;```\n- Added ```- (void)reloadData``` to reload picker.\n- Added ```- (void)showInContainer:(id)container```.\n\n### v0.4.2 - 2016-04-12\n- Improve orientation handler to avoid unnecessary pop up animations.\n\n### v0.4.1 - 2016-04-10\n- Remove bundle resources setting in podspec file.\n\n## Usage\n\nCZPicker is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"CZPicker\"\n```\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n### Swift\nIf you are using swift, please refer to swift demo project.\n\nTo show the picker, simply adding the following code:\n\n```objective-c\nCZPickerView *picker = [[CZPickerView alloc] initWithHeaderTitle:@\"Fruits\"\n                        cancelButtonTitle:@\"Cancel\"\n                        confirmButtonTitle:@\"Confirm\"];\npicker.delegate = self;\npicker.dataSource = self;\n[picker show];\n```\nand implement the dataSource and Delegate methods:\n\n```objective-c\n#prama mark - CZPickerViewDataSource\n\n@required\n/* number of items for picker */\n- (NSInteger)numberOfRowsInPickerView:(CZPickerView *)pickerView;\n\n@optional\n/*\n Implement at least one of the following method,\n czpickerView:(CZPickerView *)pickerView\n attributedTitleForRow:(NSInteger)row has higer priority\n*/\n\n/* attributed picker item title for each row */\n- (NSAttributedString *)czpickerView:(CZPickerView *)pickerView\n                            attributedTitleForRow:(NSInteger)row;\n\n/* picker item title for each row */\n- (NSString *)czpickerView:(CZPickerView *)pickerView\n                            titleForRow:(NSInteger)row;\n\n\n\n#prama mark - CZPickerViewDelegate\n@optional\n/** delegate method for picking one item */\n- (void)czpickerView:(CZPickerView *)pickerView\n          didConfirmWithItemAtRow:(NSInteger)row;\n\n/** delegate method for picking multiple items,\n implement this method if allowMultipleSelection is YES,\n rows is an array of NSNumbers\n */\n- (void)czpickerView:(CZPickerView *)pickerView\n          didConfirmWithItemsAtRows:(NSArray *)rows;\n/** delegate method for canceling */\n- (void)czpickerViewDidClickCancelButton:(CZPickerView *)pickerView;\n```\n\n## Customization\nThere are a lot of things can be customized, change the following properties to customize the picker of your own:\n\n```objective-c\n/** whether to show footer (including confirm and cancel buttons), default NO */\n@property BOOL needFooterView;\n\n/** whether allow tap background to dismiss the picker, default YES */\n@property BOOL tapBackgroundToDismiss;\n\n/** whether allow selection of multiple items/rows, default NO, if this\n property is YES, then footerView will be shown */\n@property BOOL allowMultipleSelection;\n\n/** picker header background color */\n@property (nonatomic, strong) UIColor *headerBackgroundColor;\n\n/** picker header title color */\n@property (nonatomic, strong) UIColor *headerTitleColor;\n\n/** picker cancel button background color */\n@property (nonatomic, strong) UIColor *cancelButtonBackgroundColor;\n\n/** picker cancel button normal state color */\n@property (nonatomic, strong) UIColor *cancelButtonNormalColor;\n\n/** picker cancel button highlighted state color */\n@property (nonatomic, strong) UIColor *cancelButtonHighlightedColor;\n\n/** picker confirm button background color */\n@property (nonatomic, strong) UIColor *confirmButtonBackgroundColor;\n\n/** picker confirm button normal state color */\n@property (nonatomic, strong) UIColor *confirmButtonNormalColor;\n\n/** picker confirm button highlighted state color */\n@property (nonatomic, strong) UIColor *confirmButtonHighlightedColor;\n\n/** picker's animation duration for showing and dismissing*/\n@property CGFloat animationDuration;\n\n```\n\n\n\n## Author\n\nchenzeyu, zeyufly@gmail.com\n\n## License\n\nCZPicker is available under the MIT license. See the LICENSE file for more info.\n\n## Credits\n\nCZPicker is created at and supported by [Fooyo.sg](http://fooyo.sg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenzeyu%2FCZPicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenzeyu%2FCZPicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenzeyu%2FCZPicker/lists"}