iOS, accessing files saved on iPad - ios

I am creating an app where it is a requirement to save a pdf with some info the user has put in, so the user can later on retreive this PDF and save it locally outside of the iPad.
The problem is that I cant figure out where the user will be able to find the saved PDF once it is connected to either a PC or a Mac. When running on the emulator I am able to see the PDF fine, but not when working on an actual device - so this basicly means that clearly the PDF is being saved correctly but it just wont show up in explore/itunes/whatever.
I would very much appriciate any input or ideas on what I could do. If I need to clarify the problem more let me know.
Thanks
~Rasmus

You'll want to explore enabling iTunes file sharing in your app. Here's one blog post that explains some of the steps: http://www.raywenderlich.com/1948/how-integrate-itunes-file-sharing-with-your-ios-app .

Related

How to automatically bring the url (share-link of share api) of the corresponding app page to the clipboard when a screenshot is detected

literally, I need to know how to automatically bring the url (share-link of share api) of the corresponding app page to the clipboard when a screenshot is detected..
I'm not sure the store allow my app.. but I really want to know it is technically possible
I tried this using Android broadcast receive, and talked with many senior programmer.
But everytime I asked, they were so pessimistic.
I just know how it works in technically.

iOS app trouble storing user's documents/photos anywhere other than the phone

I'm trying to find a way of letting a user store their photos/documents online for my app. They can upload these to the app after registering an email and they remain on the phone even when the user logs out and then in again. However if the user deletes the app, downloads it again (the developers are using TestFlight at the moment), and logs in, any photo or document that the user saved before deleting has vanished.
I've been told that the data hasn't been stored on the Kinvey SDK service that we have been using as it takes a while to upload the data and then was told the app would be better suited on Kinvey REST API as the SDK version doesn't support background mode which supposedly would help store the data quicker (but this still wouldn't be 100% sure the photos/documents would be stored)
I'm not a developer/coder so I'm afraid I don't know much technically but my app needs to be able to have access across devices for the user's photos and documents, if these are 'lost' it would be catastrophic.
Please could someone help me if there a way of doing this?
Thank you.
Well If you want to save pictures or data that do not get deleted here are few options.
Save them iPhone,iPad gallery if not the use REST API
"Kinvey" can be used for that.
The alternative of "Kinvey", Kindly look into this.
https://www.raywenderlich.com/126098/top-5-parse-alternatives.
and may be you can try this. It provides chat feature too.
http://quickblox.com/

How to get images from email or desktop into iOS app?

I know this is a very basic question, but something I'm never quite sure of, is how do you get images from say your email, or from your desktop (say a Mac) into your iOS app?
Let's say I develop an app and I want people to be able to put their company's logo into it, how would they do that? I presume they don't have their company logo in their phone, so how would they get it from another source into the app? If they linked to it on the web, wouldn't that just open a UIWebView to show it? i.e it wouldn't load the actual .png from the web direct to be used by the app or would it?
So, to avoid long comments, I'm putting my answer here, although this is a very general question.
The common thing with all the apps that want an image input, is that they require the user either take a photo with their phone camera, or grant access to the photo library, so that the user can select an image and upload it to the app. If you have used any of the photo-involved apps these days, you should be familiar with this. Example is Instagram, Facebook, Flickr, etc.
However if you really really want to let the user download it off the internet through your app, then you should embed a web browser in your app, allowing the user type in a URL and save the file in that URL to the documents/downloads folder in your app, and then allow them access those folders to browse and upload stuff. A good example of this kind of app, is "NuageApp" which is actually a client for the Cloud App. It's really handy to deal with file sharing the way NuageApp (funky name, huh?!) does, however it's far more complicated to implement that, than the access to the photo library.

save text to default Notes app

I am working on app in which there is a textview with save button. On the click of save button I suppose to open the Notes app and save the text on notes. Same as we done to post the sms.
I also go through this given pdf file iPhoneURLScheme_Reference
But didn't find out the way to save the text/open the notes app from the app. If someone has ever done this type of functionality or having some idea please help me out.
Thanks in advance.
I don't expect there to be an URL scheme if it is not present in the PDF you linked to.
I wold expect it to be on this list however.
Looks like you can't do that.
If you consider the URL schemes in Apple's document you will notice that all of the schemes refer to an application the user is expected to interact with immediately (navigating with Maps, making a call,...). All these applications provide something you can't do your own. What would be the benefit of your app if it just allowed the user to write a note once?

How to let a user access PDF files created by an application so that they can print them

Okay, so I have an app that generates reports for a Chiropractic clinic and allows the user to print them directly from iPad assuming they have an Airprint printer. I also am in the process of writing code that will allow the user to generate a PDF of the report so that they can email it/upload it to the cloud or somehow send it to some other device that will allow them to print it WITHOUT using AirPrint.
I know about sandboxing, but I also know that you can store PDFs on an iPad and view them through iBooks.
I read here: Loading PDFs into iBooks programmatically that there wasn't a way to do so back in 2010. The guy said he would update his answer, but you know how these things are
I also have a backdoor solution here: Xcode save a PDF as Image? turning the whole darn thing into a .png
Are there any other ways?
Use UIDocumentInteractionController to present a set of options to the user. Let the user choose what they want to do with the PDF.

Resources