Note that there are some explanatory texts on larger screens.

plurals
  1. POiOS - Flag entire Document directory as do not backup
    text
    copied!<p>My application got rejected by Apple due to :</p> <blockquote> <p>2.23: Apps must follow the iOS Data Storage Guidelines or they will be rejected</p> </blockquote> <p>so is it possible that flag entire Document directory as do no backup ? my application runs in iOS 6.1 and higher .</p> <p>I am familiar with this code , but I don't know hot to mark my Document directory with it </p> <pre><code>- (BOOL)addSkipBackupAttributeToItemAtURL:(NSURL *)URL { assert([[NSFileManager defaultManager] fileExistsAtPath: [URL path]]); NSError *error = nil; BOOL success = [URL setResourceValue: [NSNumber numberWithBool: YES] forKey: NSURLIsExcludedFromBackupKey error: &amp;error]; if(!success){ NSLog(@"Error excluding %@ from backup %@", [URL lastPathComponent], error); } return success; } </code></pre> <p>EDITED : </p> <p>Apple has told me that iCloud backups my photos from image gallery , I load images of gallery like this :</p> <pre><code>- (void)setupPageScroll { NSString *imgCount; int i; [_scrollView setContentSize:CGSizeMake(_scrollView.frame.size.width * _pageControl.numberOfPages, _scrollView.frame.size.height)]; _scrollView.delegate = self; for (i = 0 ; i &lt; 10 ; i++) { imgCount = [NSString stringWithFormat:@"%@%d.jpg",_gallName , i]; [self createPageWithImage:[UIImage imageNamed:imgCount] forPage:i]; } } - (void)createPageWithImage:(UIImage *)images forPage:(int)page { UIView *newView = [[UIView alloc] initWithFrame: CGRectMake(_scrollView.frame.size.width * page, 0, _scrollView.frame.size.width, _scrollView.frame.size.height)]; UIImageView *tempImage = [[UIImageView alloc]initWithImage:images]; [tempImage setContentMode:UIViewContentModeScaleAspectFit]; tempImage.frame = _galleryView.frame; _imgGallery = tempImage; [newView addSubview: _imgGallery]; [_scrollView addSubview: newView]; } - (IBAction)pageChanged:(id)sender { CGRect pageRect = CGRectMake(_pageControl.currentPage * _scrollView.frame.size.width, 0, _scrollView.frame.size.width, _scrollView.frame.size.height); [_scrollView scrollRectToVisible: pageRect animated: YES]; } </code></pre> <p>How can skip these images ? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload