{"id":16860665,"url":"https://github.com/wolfcon/fcqrcodescanner","last_synced_at":"2025-03-18T14:38:55.934Z","repository":{"id":151885715,"uuid":"44504907","full_name":"wolfcon/FCQRCodeScanner","owner":"wolfcon","description":"Simple QRcode Scanner(Apple API) \u0026 Generator","archived":false,"fork":false,"pushed_at":"2015-10-29T10:01:28.000Z","size":260,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T19:14:35.750Z","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/wolfcon.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":"2015-10-19T01:43:16.000Z","updated_at":"2017-12-14T22:50:59.000Z","dependencies_parsed_at":"2023-04-11T10:54:43.584Z","dependency_job_id":null,"html_url":"https://github.com/wolfcon/FCQRCodeScanner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfcon%2FFCQRCodeScanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfcon%2FFCQRCodeScanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfcon%2FFCQRCodeScanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wolfcon%2FFCQRCodeScanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wolfcon","download_url":"https://codeload.github.com/wolfcon/FCQRCodeScanner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244242032,"owners_count":20421800,"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-10-13T14:25:58.651Z","updated_at":"2025-03-18T14:38:55.910Z","avatar_url":"https://github.com/wolfcon.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FCQRCodeScanner\n\n[![Build Status](https://travis-ci.org/wolfcon/FCQRCodeScanner.svg)](https://travis-ci.org/wolfcon/FCQRCodeScanner)\n\nSimple QRcode Scanner \u0026 Generator(Apple API) \n\n## Support platform\n\niOS 7.0 for common function.\n\niOS 8.0 for local picture decode.\u003cfont color=#990000\u003e*[And device limitation: iPhone 5S above device support this function(include 5S)]*\u003c/font\u003e\n\n## Installation\n\n- Drag FCQRCodeScanner folder to your project.\n  \n- \u003cfont color=#FF0000\u003e(not available now)\u003c/font\u003e*~~CocoaPod:~~* \n  \n  *~~add `pod 'FCQRCodeScanner', '~\u003e1.0.0'`~~*\n\n## Usage\n\n#### Scan\n\n\n- **Import header:**\n \n  ``` objective-c\n  #import \"FCQRCodeScanner.h\"\n  ```\n  \n\n- **Initialization:**\n\n  ``` objective-c\n  FCQRCodeScanner *scanner = [FCQRCodeScanner scannerWithFrame:self.view.frame\n                                  completion:^(NSString *codeString, FCQRCodeScanner *instance) {\n  \t\t\t\t\t\t\t\t\t// Do something when get a code\n                                    \t// you can do continue scan by [instance startReading];\n                                    \t// or you can use code and close scan view by [instance close];\n                                  }\n                                  dismissedAction:^(FCQRCodeScanner *instance) {\n                                  \t// Do something after scan view exit\n                                    \t// Close button clicked event will trigger this block\n                                    \t// For example [instance.view removeFromSuperview];\n                                  }];\n  ```\n  \n- **Add the scan view:**\n  \n  ``` objective-c\n  [self.view addSubview:scanner.view];\n  // or you can use any other way\n  // present or transition\n  ```\n  \n- **Close the scan view:**\n  \n  ``` objective-c\n  [scanner close]; // this function will trigger dismissedAction block.\n  ```\n\n\n\n#### Generate\n\n\n\n- **Import header:**\n  \n  ``` objective-c\n  #import \"NSString+FCQRCodeGenerator.h\"\n  ```\n  \n- **Generate:**\n\n   ``` objective-c\n  // string is what you wanna generate from\n  // image is QRCode Avatar that you wanna add\n  UIImage *myQRCodeImage = [string qRImageWithSize:200]; \n  // or\n  UIImage *myQRCodeImageWithAvatar = [string qRImageWithSize:200 avatar:image];\n  ```\n\n\n\n#### Decode a QRImage from local storage.\n\n\n- **Import header:**\n  \n  ``` objective-c\n  import \"UIImage+Decode.h\"\n  ```\n  \n- **Decode:**\n  ```objective-c\n  // image is what you wanna decode from local storage.\n  NSString *codeString = [image decodeWithQRCodeType];\n  // iPhone 5S above device support this function(include 5S)\n  ```\n  \n\n\n\n## License\n\nUnder the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfcon%2Ffcqrcodescanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwolfcon%2Ffcqrcodescanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwolfcon%2Ffcqrcodescanner/lists"}