Questions tagged [uidocument]

UIDocument represents a user-editable document in an iOS application. It is an abstract base class in the UIKit framework. When it is used, its subclass takes the role of the model of a model-view-controller application. Because it implements the NSFilePresenter protocol, it significantly simplifies writing a document-based iOS application. Its Mac OS counterpart is NSDocument.

UIDocument represents a user-editable document in an iOS () application. It is an abstract base class in the UIKit () framework. When it is used, its subclass takes the role of the model of a model-view-controller application. Because it implements the NSFilePresenter protocol, it significantly simplifies writing a document-based iOS application. Its Mac OS () counterpart is NSDocument ().

To learn more, see the Document-Based App Programming Guide for iOS.

268 questions
0
votes
1 answer

How can I check if my UIDocument has been updated via iCloud while the app was in the background?

I noticed that UIDocument's methods to let the app know of a change, such as presentedItemDidChange, only get called if the app is running in the foreground. What I'm wondering is, if the user was to switch apps or send my app to the background, how…
Anton
  • 3,998
  • 25
  • 40
0
votes
1 answer

Does iCloud upload all files in the Documents directory to the cloud servers?

I was under the impression that iCloud only worked with UIDocument files. How about other types? Also if my user's files get uploaded into the cloud, can he use those files with all his devices if my app is universal?
0
votes
1 answer

Existing UIDocument Won't Update On iCloud

I have an app that has no problem creating, storing, moving, and reading new files to and from the Cloud. What I'm having an issue with is modifying documents that already exist in the cloud. I'm calling [NSFileManager defaultManager]…
Matt Meyers
  • 143
  • 6
0
votes
4 answers

Exporting a photo to Instagram

I am trying to export a photo from my application to Instagram, using this code: // Capture Screenshot UIGraphicsBeginImageContextWithOptions(self.view.frame.size,self.view.opaque,0.0); [self.view.layer…
user1767928
  • 121
  • 2
  • 11
0
votes
1 answer

How to update UIDocument data

I have one local UIDocument that contain save NSArray of recently views articles into single file. My app is UITabbarController based, In one tab there is list of fetched articles from internet, the other one is UITableView backed with this…
sarunw
  • 8,036
  • 11
  • 48
  • 84
0
votes
1 answer

Initializing new UIDocument with some data

I've been reading everything I can here about UIDocument and UIManagedDocument since there is more help on UIManagedDocument and it's a subclass of UIDocument, but I've not been able to figure what I need to do about this. When the user hits the add…
tobinjim
  • 1,862
  • 2
  • 19
  • 31
0
votes
1 answer

Opening txt file from iCloud

In my app, I am trying to do a simple thing - save a txt file and an image file into iCloud and then retrieve it back to open it on the app. Right now, I can save both txt and image files into iCloud - no problem. I can even pull the URLs and the…
BlueChips23
  • 1,861
  • 5
  • 34
  • 53
0
votes
1 answer

UIDocument or UIManagedDocument when the application's backing store is both file & core data database

I am bit confused regarding which class I should inherit from. My application currently creates files in the "Documents" folder and also has Core Data based data models. These data models contains more information about the files. Now I am thinking…
ksachdeva
  • 91
  • 6
0
votes
1 answer

subclassing initWithFileURL of an UIDocument

I'm trying to overwrite the initWithFileURL of an UIDocument as I need to call some custom methods once an UIDocument is initialised. I thought this may be a good idea: -(id)initWithFileURL:(NSURL *)url { self = [super initWithFileURL:url]; …
n.evermind
  • 11,944
  • 19
  • 78
  • 122
0
votes
1 answer

Load document from iCloud before view will be loaded

I have images on iCloud and I subclassed UIDocument for them. Now i want to display images on the UITableView after ViewController will be loaded. So I added this code inside the viewDidLoad method - (void)viewDidLoad { ... …
ZigDanis
  • 154
  • 1
  • 11
0
votes
1 answer

UIDocument saveToURL: causing severe lag

UIDocument's saveToURL:forSaveOperation:completionHandler: is suppose to be asynchronous (in documentation, it says it performs this action on a background queue), but my code has a 7-10 seconds lag when calling this. Here's the code: NSLog(@"saving…
0xSina
  • 20,973
  • 34
  • 136
  • 253
-1
votes
0 answers

Save large documents in time when user force quits an app

I'm developing a document-based app allowing users to draw UIBezierPaths. I rely on the UIDocument autosave feature, which is activated after a few seconds of no new data being added. However, I'm facing an issue: When users force quit the app…
Kroplay99
  • 9
  • 5
-1
votes
1 answer

Saving Data on iCloud

I have been able to sync a plist to iCloud with all the user's level high scores. I still haven't been able to figure out how to make it so people cannot just go into iCloud docs folder and change those values. I know Jetpack Joyride saves their…
chap
  • 37
  • 1
  • 5
1 2 3
17
18