ios8 - dismissGrantingAccessToURL of UIDocumentPickerExtensionViewController is not working -
I am working on the document provider extension for the import provider.
The URL of the file shared between both shared extensions and shared containers; Container app.
I got a failure to say that it should sit inside the shared container / file provider storage directory.
So I copied the file from the root directory to the file provider's storage directory.
I have a file in the original location & amp; I got a file in a new copied place
But when I call [self declarantGrantingAccessToURL: toUrl]
this file does not check for the length of time, I am not faced with any exceptions, but this will be used to dismiss the transfer and start, so the user can still use the extension. Below is my code, if one comes in the same thing please leave your answer. When you have to debug the implementation of your Reboot the solution is your device. UIDocumentPickerExtensionViewController
- (zero) userChoosesEntityOfUrl: (ns URL *) url {NSURL * toUrl = [self.documentStorageURL URLBeBayAppendingPathComponent: [url lastPathComponent]]; If ([[NSFileManager defaultManager] fileExistsAtPath: [toUrl Path]]) {[NSFileManager defaultManager] removeItemAtPath: [toUrl Path] Error: Zero]; } If ([[NSFileManager defaultManager] copyItemAtURL: url toURL: toUrl error: zero]) {NSLog (@ "% @", [toUrl Path]); } If (! [NSFileManager defaultManager] fileExistsAtPath: [toUrl Path]]) {NSLog ("File does not exist on this path"); Return; } NSLog (@ "Data length% i", [[NSData Datvide contentoff file: [toUrl path]] length]); [Rejecting itself GrantingAccessToURL: toUrl]; }
NSFileProviderExtension , Then you usually have to stop / kill it using the encoded. After that, iOS often has problems restarting your file extension. As a result GarmentingAccessToURL is not dismissed after dismissing
on your document picker. This bug also affects your subclass of
UIDocumentPickerExtensionViewController , which will sometimes not start (you only see the document picker's navigation bar, but not the content).
Comments
Post a Comment