[Solved] Rejection Issue [closed]


You have to set “do not backup” attribute to let iphone manage all your resources downloaded in document directory.

Place below code in your didFinishLaunchingWithOptions method of appdelegate –

NSArray *docPath = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
    NSString *documentDir = [docPath objectAtIndex:0];
    NSURL *pathurl=[NSURL fileURLWithPath:documentDir];

const char* filePath = [[URL path] fileSystemRepresentation];
    const char* attrName = "com.apple.MobileBackup";
    u_int8_t attrValue = 1;

    int result = setxattr(filePath, attrName, &attrValue, sizeof(attrValue), 0, 0);
    return result == 0;

1

solved Rejection Issue [closed]