Post

Replies

Boosts

Views

Activity

Reply to iOS 15 (Beta) PDFKit 'insertPage:atIndex:' issue
Same problem when using simulator. Implemented routines with PDFDocument as well as CGPDFDocumentRef type calls giving the same incorrect results. Here is a subroutine code snippet demonstrating the pdf file appending procedure used in the app. Works on different devices and iOS/iPadOS versions prior to iOS 15 (all beta releases so far). {     /*      'appDelegate.pdfArray' contains entries of file paths for each pdf input file to be appended to the final output pdf located at 'pdfPathOutput'.      Had all files either pointed to 'NSApplicationSupportDirectory' or 'NSDocumentDirectory'. Outcome is the same.      */     NSString *pdfPathOutput = [appDelegate getPDFFileName:YES : LABELFILEDS];     NSURL *strURLOut = [[NSURL alloc] initFileURLWithPath:pdfPathOutput];     NSURL *strURLOutInit = [[NSURL alloc] initFileURLWithPath:[appDelegate.pdfArray objectAtIndex:0]];     //Initializes the new PDF with the first pdf from the path Array     PDFDocument *newPdfDocument = [[PDFDocument alloc]initWithURL:strURLOutInit];     // Start append loop with second pdf input file from array     for(NSInteger jj = 1;jj < [appDelegate.pdfArray count];jj++)     {         NSString *source = [appDelegate.pdfArray objectAtIndex:jj];         NSURL *strURL = [[NSURL alloc] initFileURLWithPath:source];         PDFDocument *currentPdfDocument = [[PDFDocument alloc] initWithURL:strURL];         if(currentPdfDocument)         {             for(NSInteger kk = 0; kk < currentPdfDocument.pageCount;kk++)             {                 // Insert page at zero-based pageAtIndex kk                 [newPdfDocument insertPage:[currentPdfDocument pageAtIndex:kk]atIndex:jj];             }             [currentPdfDocument release];         }         [strURL release];     }     [newPdfDocument writeToURL:strURLOut];     [strURLOut release];     [newPdfDocument release];     [strURLOutInit release];     return pdfPathOutput; //Returns the path of combined pdf result }
Aug ’21
Reply to Xcode 14.0 beta 4 minimum Project iOS Deployment Target is 11.0
Thank you for your helpful reply. The release note states as you indicated.
Replies
Boosts
Views
Activity
Jul ’22
Reply to iOS 15 (Beta) proximityState not responding
Tested with iOS 15.1 (19B74) on iPhone. Works just fine.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to iOS 15 (Beta) PDFKit 'insertPage:atIndex:' issue
Same problem when using simulator. Implemented routines with PDFDocument as well as CGPDFDocumentRef type calls giving the same incorrect results. Here is a subroutine code snippet demonstrating the pdf file appending procedure used in the app. Works on different devices and iOS/iPadOS versions prior to iOS 15 (all beta releases so far). {     /*      'appDelegate.pdfArray' contains entries of file paths for each pdf input file to be appended to the final output pdf located at 'pdfPathOutput'.      Had all files either pointed to 'NSApplicationSupportDirectory' or 'NSDocumentDirectory'. Outcome is the same.      */     NSString *pdfPathOutput = [appDelegate getPDFFileName:YES : LABELFILEDS];     NSURL *strURLOut = [[NSURL alloc] initFileURLWithPath:pdfPathOutput];     NSURL *strURLOutInit = [[NSURL alloc] initFileURLWithPath:[appDelegate.pdfArray objectAtIndex:0]];     //Initializes the new PDF with the first pdf from the path Array     PDFDocument *newPdfDocument = [[PDFDocument alloc]initWithURL:strURLOutInit];     // Start append loop with second pdf input file from array     for(NSInteger jj = 1;jj < [appDelegate.pdfArray count];jj++)     {         NSString *source = [appDelegate.pdfArray objectAtIndex:jj];         NSURL *strURL = [[NSURL alloc] initFileURLWithPath:source];         PDFDocument *currentPdfDocument = [[PDFDocument alloc] initWithURL:strURL];         if(currentPdfDocument)         {             for(NSInteger kk = 0; kk < currentPdfDocument.pageCount;kk++)             {                 // Insert page at zero-based pageAtIndex kk                 [newPdfDocument insertPage:[currentPdfDocument pageAtIndex:kk]atIndex:jj];             }             [currentPdfDocument release];         }         [strURL release];     }     [newPdfDocument writeToURL:strURLOut];     [strURLOut release];     [newPdfDocument release];     [strURLOutInit release];     return pdfPathOutput; //Returns the path of combined pdf result }
Replies
Boosts
Views
Activity
Aug ’21
Reply to iOS 15 (Beta) proximityState not responding
Retested apps under iOS 15 beta 2, and problem still persists. Can anyone at Apple support please look into this and provide some feedback?
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’21