The idea is that i will create a file in the app and store some data in it.
I want for the end user to be able to download that file from the iOS device to his mac/pc.
Is this somehow possible? Where should i put the file for the user to be able to download it via itunes?
Here is good tutorial you can use:
Tutorial
It is important to know, that in iOS, when your user needs to create file, you do not need to care where to save it.
Another possibility for you might be to avoid saving data as file. For example, if your data is picture:
UIImage send to email
Related
I am trying to create an ios Wallet Event Ticket. I managed to give all the info I needed to create the pass.json and I have signed and zipped it. When I try to open this on a Mac, I am able to see the pass in the preview. When I email it and try to open it from an iPhone, the screen just goes to the main screen as if it crashed.
After lots of experimentation I found out that if I add at least one of t he images (icon) I am able to see it in preview and add it to the Wallet.
Since I do not care to add any image, this seems way too much just to make it work.
The question is, are images required in the pass? And if not, why does it not work without them. I repeat, it was displayed on Mac preview either with or without the image file.
Yes! manifest.json required the image correctly, moreover the pass.json also need to ensure everything is correct. Some elements must add in json for iPhone open, for example:serialNumber, webServiceURL, authenticationToken, relevantDate
Also, iPhone open .pkpass as difference format with mac. In my case , the signature file is wrong will also make the .pkpass file cannot open in iPhone.
Since it's possible to download Game Center metadata through Transporter into a .itmsp package file, how would you edit and upload that file using Application Loader? I see no interface for Game Center metadata in Application Loader. Application Loader is default app to open .itmsp packages. Did I miss something?
At worst best I guess it could be possible to edit the contained .xml file, add a few achievements, and then try to upload that into iTunes Connect using Application Loader.
If you make a lookup on an existing app inside your Itunes account, you download a file called like like the vendor_id with the .itmsp format. My experience was, opening this file by double clicking inside the Application Loaderjust changes the data inside this archive.
In my case, an additional file was created called something like meta-local... and the metadata.xml from Itunes Connect has been changed. It's like the Application Loader deletes information like description, keywords, url`s, screenshots and all the data you have to define the first time you create the app before uploading the binary.
Instead of using the Application Loader you should open the .itmsp file by right clicking and selecting show package content. This way nothing will be changed and you can open the metadata and change specific data.
I don't have Game Center elements included in my app yet but I did some researches on tools which could automate the process of generating and changing data. Have a look at these projects, the first one looks like it could be exactly what you're looking for:
iTunes Transporter Generator
iTunes Store Connector
iTunes Store Transporter Web
If not maybe you could create an Apple Script to parse the metadata.xml and add or change your data.
I would appreciate if you could leave a comment if any of these tools could help you with the Game Center problem.
So, this is the task I want to achieve. In my app, I have a text field which displays a list of all the apps and files that are present in my iOS device. One of them will be dropbox. When I tap on drop box, it should open the dropbox app and ask for user credentials. Once the user enters his credentials, it should save them and it shouldn't ask the next time he logs in again. Now, in that textbox that I mentioned earlier, I should get the list of the files that are there in my dropbox folder.
I'm new to iOS app development stuff so any help in the form of links, documentation will help alot. Please give me a brief idea on how to achieve this task.
Since you said links:
Tutorial Links
http://www.mathiastauber.com/integration-o-dropbox-in-your-ios-application/
http://www.mathiastauber.com/integration-of-dropbox-in-your-ios-application-authentication/
http://programmaticallytakingscreenshot.blogspot.com/2011/04/dropbox-integration-in-iphone.html
Dropbox Links
http://www.dropbox.com/developers/apps
https://www.dropbox.com/developers/start/setup#ios
You should consider using Table Views to show your data instead of Text Fields.
http://www.appcoda.com/ios-programming-tutorial-create-a-simple-table-view-app/
Apple Documentation on Table Views:
http://developer.apple.com/library/ios/#documentation/userexperience/conceptual/tableview_iphone/AboutTableViewsiPhone/AboutTableViewsiPhone.html
Good luck with this!
What you are proposing violates the sandboxing principle of iOS. Apps don't know about anything outside their own documents folder, and do not have permission to read or write outside the area.
Files stored in Dropbox are accessible via the Dropbox API, so you will be able to achieve that part of your design, but most of the other apps on the device will not be visible or accessible to you.
I am currently developing an app that has to be able to share documents between two apps. A PDF file will be openend in my app and has to be sent to another app, Pages for example, to make changes to it. From there I can send the file back to my own app if the second app supports it. Now I have been able to register the file types for my own app, and it is showing up and opening files from the second app.
The problem I'm having is adding an 'Open with' option to my own app. Apple's documentation only seems to cover assigning file types to your own app, but not how to share files with other apps. Can any of you point me in the right direction?
You need to use UIDocumentInteractionController explained here and maybe this link will help link too.
I am working on an app for iPad where I want to have lets say 100 jpg's in a folder.
They could be named like 01.jpg, 02.jpg etc.
In my app I like to browse those images and when clicking on one of them I need the name of the image to be able to send some data over the network (the data part works fine).
I tried to use UIImagePicker but I found out there are no name connected to the actual image.
Then I made another approach where I have a number of pages where I have buttons and here I load in the images which works fine as long the are a part of the recourse of the project...
But here comes the real problem.
The user of the app should be able to change those images over time without recompiling the app.
So I do look for a way to have a folder where the user can place/replace images with the names 01.jpg etc and the app to use those updated images.
Ideas are very welcome.
Wiljan
I am not sure that I understand what you mean, but You can save images in your application documents folder. You can find more details at:
http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/StandardBehaviors/StandardBehaviors.html#//apple_ref/doc/uid/TP40007072-CH4-SW6
You can also use NSFileManager to copy files.
what I suggest to do is :
put default images on project resources.
At first start, copy files to documents folder.
always use images from documents folder.