ios - How to check NSDocument is exist on iCloud or not -


i have used following code check file exist or not, nsmetadataquery giving me count zero.

-(void)loaddata:(nsmetadataquery *)query {     nslog(@"count %d", [query resultcount]);     if([query resultcount] == 0)     {         nslog(@"file not exists");     }     else     {         nslog(@"file exists");     } } 

is other way check file exist on icloud?


Comments