1

I have used the following code to check that the file exist or not, but the NSMetaDataquery is giving me a count zero.

-(void)loadData:(NSMetadataQuery *)query
{
    NSLog(@"Count %d", [query resultCount]);
    if([query resultCount] == 0)
    {
        NSLog(@"File Not Exists");
    }
    else
    {
        NSLog(@"File Exists");
    }
}

Is their any other way to check the file exist on iCloud?

Vinod Sutar
  • 101
  • 6

0 Answers0