Document greyed out in document browser - swift

I tried to build an app based on the Document based app template. I am trying to get it to open markdown files. I got it to create the files and show up in the share sheet when viewing the file in the Files app. However in the Document Browser in the app (UIDocumentBrowserViewController) it is greyed out and cannot be selected. I can't really find what this is due. How do I fix this?

I tried it a second time, still did not work. A few days later however, the second one started working, the first one is still broken.

Related

Source page to Live Copy page changes are not reflecting in AEM 6.1

First I tried to a Launch Page, a launch page is a Live Copy of the Source page with rolloutconfig being pushonmodify.
But no matter what I do, any changes that I make on the source page they do not reflect on the Launch Page.
I also tried creating an actual Live Copy using siteadmin but even the same problem appears for manually created LiveCopies.
I have checked the logs and there is nothing present in it.
Why is this happening?
Is there any configuration that I have missed and that is why this is happening?

{Netbeans}The form file does not contain valid XML.Form cannot be opened.Contents is not allowed in prolog

I was recently working on a really huge project in netbeans. I saved it in my desktop, and then proceeded to save it also in my USB. However, the next day, when I learned it could be for a later date, I deleted the one in my USB.When I put on the one in my desktop, all the work I had done was not saved on it, including the making of new JFrames etc. So I used a program to recover my deleted files. I now have loaded them into the netbeans IDE< however, there is an error sign next to most of them. When I click on a class inside my project with the error,an error message comes up before I can access it. It says "The form file does not contain valid XML.Form cannot be opened.Contents is not allowed in prolog." When I press "OK", my class has "coding" which looks like:
W�'6��G��ԧ��(g&�Cd�nw|7�\ej��
�;���كG�s=�Bl+��6�r�#ma���'�f�T�9Kx�q�M�G�t�q� �:���� \!�%İ��P�&!�[�R���`�,+��U���"���Ј���yF&mÛ�
�
Y ?/,8��#�t:�ԇ
��lOѪ|T�^?v"
....that.
And when I go to "design view" that message comes up again. What should I do? What CAN I do? I really need the bulk of my project to finish it in time!!!Oh, the project is for tommorow, so the quicker answer the better :'(
right click on the latest file from History ->revert (the .form)
Go to the history of the file and copy the content of .form file then go to directory and open the 0byte file .form by the editor and paste the content! I have done this and it worked for me.

How to edit an existing pdf document in an iOS application using any third party libraries.

I would like to edit an existing pdf document,most probably comes from the server. My requirement is to edit the pdf document. Here editing means i want to add some text at some particular place. Whenever user clicks on a document at some place where he wishes to enter the text, keyboard should appear and can able to write some text. In the same way, he should be able to delete some of the text which he doesn't want to use in the existing document. After all these manipulations he should be able to save the document. I have been trying with fastpdfkit framework, everything is possible but entering text and deleting is not working which is the main requirement for me. Anybody who had worked with this kind of requirement could probably help me.
you can try with fastpdfkit.
Download the sample code form github and make use of it.
Try following demo of Leaves framework

Office documents in UIWebView with time difference between dates

I've been using UIWebView to render office docs for a while, but recently I noticed that when a date is added in the file, let's say an Excel file with a date value in one of the cells, the date is (apparently) being modified by the web view.
The weird thing is that I made a test based on two projects. The first one, is a project that I've been working on for about a year and the second is new one that I created just for testing purposes.
The dates are being displayed correctly in the new project, but wrong in the old project so I'm starting to think is something regarding the project settings. I also copied the classes from the new project to the old one to see if there was a difference, but even using the new classes, my old project shows incorrect(*) dates for the same excel file.... so that's weird.
Any ideas?
Thanks in advance
Update 1:
(*)By incorrect dates, I mean there is a time difference between the one displayed in the test project and the one displayed in the old project for the same file.
I changed the title of the question from "... invalid dates" to " ...time difference between" ... because the word "invalid" may lead to a misunderstanding.
I was not able to understand what the problem was, but the solution for now is to change the visualization component from UIWebView to the QuickLook framework.
I know this is not the correct answer to the question, but at least is a way to display the document correctly.

Retrieving updated files from server to replace files on documents folder of an iPhone

Im new to iPhone programming and wanted to see how people have solved this problem:
Ive created my app which will ship with certain pLists and .png files in the main bundle. However, what I want to do is when the app starts up, Id like it to check my server to see if there are updated versions of the files in the documents folder available. If so Id like the app to download those files.
I was wondering if someone can point me to some resources on how to do this? Ive searched online but haven't come up with good hits.
Whats the google key-word for searching this topic anyways?
Thanks a lot
you can use NSUrlRequest to download the files, to move them to the correct place you can use NSFileManager, if you look at the apple docs for both these classes there should be sample code explaining how to copy/save a file from NSData, and also how to download it.
I don't have any example resources of how to do exactly this, though I would probably do something along the lines of onAppLoad checking to see if the content of the application that you want to keep updated is the most recent, and if not, download it.
As for keywords to search I would try something along the lines of "Automatic App Content Updating/Verification" and throw in "iOS/iPhone/iPad" or some similar combination.
I'll do some more poking around and shoot you a comment notification if I find anything worthwhile, and then edit my post with it.