i have searched a lot also here on SO but i haven't find a way to start what i want, in my app i want to save some custom object on iCloud, i think the best way is using UIDocument, this is the custom Object:
@interface AppState : NSObject
@property (nonatomic, strong) NSNumber *timestamp;
@property (nonatomic, strong) NSNumber *type;
@property (nonatomic, strong) NSString *note;
@property (nonatomic, strong) NSString *device;
@end
then i doesn't know how, i want store this information on iCloud and retrieve it on the other device, i know i have to subclass the UIDocument class, but i can't figure out how i store this information, i have to insert it in an array? or something else? any help will be appreciate because i have find a lot of tutorial on how store nsstring, but i have a custom object, and i want also know if possible how this information is stored on iCloud, a single file for every Custom Object, or are all insert in one single file?