Post

Replies

Boosts

Views

Activity

iPad Pro 11 - Save RAW pixel (DNG) photo using Front Camera
Hello Everyone, We are using standard AVCapture APIs to take Photo from iPad guard let availableRawFormat = self.manualSettingsView.photoOutput?.availableRawPhotoPixelFormatTypes.first else { return nil} Here we are getting empty type. Since available raw format type is empty, photo settings is nil,. Therefore, we are unable to capture photo for front camera in RAW format. Is there any way to take photo from front camera and save image as RAW data. Note: We can save HEIC,PNG etc, but we want to save as DNG (RAW)
1
0
558
Aug ’20
UIImage to String without converting JPG/PNG/HEIC
Hello Gurus, We would like to convert UIImage the raw binary data to string and reverse the string to UIImage object. At most of the place we found below block. extension String { 		func toImage() -> UIImage? { 				if let data = Data(base64Encoded: self, options: .ignoreUnknownCharacters){ 						return UIImage(data: data) 				} 				return nil 		} } Is there any way to convert UIImage to String without converting JPG/PNG/HEIC ?
1
0
2.1k
Aug ’20
Provisioning Profile vs Enterprise certificate expiry which take priority
Hello Everyone,We faced the issue of app is not getting load due to Provisioning Profile got expired but our certificate expiry date is in future.As per below table, what should happen for pattern#1PatternCertificateProvisioning ProfileComment1ExpiredValidApp load might fail, ??????What will happen here.2ValidExpiredApp doesn't load, as confirmed earlier.We did not found any suitable documentation mentioning this above fact.Apperciate if anyone supports us in this.Thank you.
1
0
859
Jun ’20
Cocoa touch framework avoid reverse engineering
We have created the Cocoa touch framework ".framework" file.Want to distribute this file to third party but as our code very sensitive and due to security policie, we want to make sure that no one should de-compile or reverse engineer the framework.Are there any apple standards or any other best ways to solve this problem ?Not sure about this: https://stackoverflow.com/questions/17919304/decompilation-possibilities-in-ios-and-how-to-prevent-themAs per this "It seems NOT to be possible to reverse engineer to Cocoa code."
2
0
1.7k
Dec ’19
Directly access file from External drive without UIDocumentPickerViewController
According to this:https://developer.apple.com/documentation/uikit/view_controllers/providing_access_to_directoriesiOS 13 adds the ability of UIDocumentPickerViewController to select a directory, including directories from 3rd party file providers.On click of button in the ViewController, calling below function "showPickerView"We are using below code snippet, to access external USB drive via lightening cablefunc showPickerView() { let url = URL(string: "/some_path_here/NO%20NAME/DCIM")! let documentPicker = UIDocumentPickerViewController(documentTypes: [kUTTypeFolder as String], in: .open) documentPicker.delegate = self documentPicker.allowsMultipleSelection = false documentPicker.directoryURL = url documentPicker.modalPresentationStyle = .custom documentPicker.definesPresentationContext = true documentPicker.transitioningDelegate = customTransitioningDelegate self.present(documentPicker, animated: true, completion: nil) }Once this function is called below popup is displayed,User will click the the "Done" label which will invoke the below code.func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]) { guard let url = urls.first else { return } print(url) //Access using security-scoped resource }Our goal: Instead of showing popup of document picker and clicking on "Done" button, directly access file from External drive (External drive's path we already know)Reason: For end user, this pop up is annoying.Options we have triedShow the Document Picker but automatically close it.Get the object of "Done" button on top right side - execute the buttonObj.sendActions(for: .touchUpInside)Programmatically, provide some gesture/shortcut which will played once this popup is openedHide this pop up by changing the opacity or visibility option.Currently any of the above option is not working.Please tell us, if any other recommended way to solve this problem.Thank you !
1
0
1.9k
Dec ’19