{"id":19317706,"url":"https://github.com/queeniecplusplus/ios_back_2","last_synced_at":"2025-10-04T10:13:30.664Z","repository":{"id":104588332,"uuid":"333289128","full_name":"QueenieCplusplus/iOS_Back_2","owner":"QueenieCplusplus","description":"Camera Feature: to touch screen to call the camera, and save image in photo lib","archived":false,"fork":false,"pushed_at":"2021-01-27T03:25:37.000Z","size":1359,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-06T04:25:04.854Z","etag":null,"topics":["ios","ios10","ios11","ios14","swift","uiimagepickercontroller"],"latest_commit_sha":null,"homepage":"https://github.com/QueenieCplusplus/QuickGoThru/blob/master/README.md#apple-ios-swift-溫故愛鳳---計畫復甦","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/QueenieCplusplus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2021-01-27T03:15:09.000Z","updated_at":"2023-11-27T14:29:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"45237c5e-7d90-4bc0-8874-ec8a40d879a8","html_url":"https://github.com/QueenieCplusplus/iOS_Back_2","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/QueenieCplusplus%2FiOS_Back_2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/QueenieCplusplus%2FiOS_Back_2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/QueenieCplusplus","download_url":"https://codeload.github.com/QueenieCplusplus/iOS_Back_2/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240420940,"owners_count":19798501,"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","ios10","ios11","ios14","swift","uiimagepickercontroller"],"created_at":"2024-11-10T01:15:56.123Z","updated_at":"2025-10-04T10:13:25.644Z","avatar_url":"https://github.com/QueenieCplusplus.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# iOS_Back_2\nCamera Feature: to touch screen to call the camera, and save image in photo lib\n\n1. add K/V to ask for users auhthorization to camera usage and usage of image saving.\n\n         Privacy - Camera Usage Description\n         Privacy - Photo Lib Add Usage Description\n         \n         \n  ![](https://raw.githubusercontent.com/QueenieCplusplus/iOS_Back_2/main/info_property_list_2.png)\n  \n  ref: https://medium.com/彼得潘的-swift-ios-app-開發問題解答集/ios-10存取使用者私密資料都要加上usage-description-a01715e56491\n     \n2. code in ControllerView.\n\n\n        //  ViewController.swift\n        //  KatesCamera\n        //\n        //  Created by KatesAndroid on 2021/1/27.\n        //\n\n        import UIKit\n\n        class ViewController: UIViewController, UINavigationControllerDelegate, UIImagePickerControllerDelegate {\n\n            override func viewDidLoad() {\n                super.viewDidLoad()\n                // Do any additional setup after loading the view.\n            }\n\n            override func touchesEnded(_ touches: Set\u003cUITouch\u003e, with event: UIEvent?) {\n\n                let imgP = UIImagePickerController()\n                imgP.sourceType = .camera\n                imgP.delegate = self\n                show(imgP, sender: self)\n            }\n\n            func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) {\n                let img = info[UIImagePickerController.InfoKey.originalImage] as! UIImage\n\n                UIImageWriteToSavedPhotosAlbum(img, nil, nil, nil)\n                dismiss(animated: true, completion: nil)\n            }\n\n\n        }\n        \n    ref: https://stackoverflow.com/questions/41717115/how-to-make-uiimagepickercontroller-for-camera-and-photo-library-at-the-same-tim\n        \n3. run iPhone Simulator.\n\n  ![](https://raw.githubusercontent.com/QueenieCplusplus/iOS_Back_2/main/exception.png)\n  \n4. Reason for Exception Error occured.\n\n  ![](https://raw.githubusercontent.com/QueenieCplusplus/iOS_Back_2/main/reason.png)\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fios_back_2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqueeniecplusplus%2Fios_back_2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqueeniecplusplus%2Fios_back_2/lists"}