Creating PDF file from UIWebView

后端 未结 6 1937
天命终不由人
天命终不由人 2020-11-29 19:10
 -(void)createPDFfromUIView:(UIView*)aView saveToDocumentsWithFileName:(NSString*)aFilename
{
    // Creates a mutable data object for updating with binary data, lik         


        
6条回答
  •  春和景丽
    2020-11-29 19:46

    It looks like the issue may come from the hardcoded height 648. What happens if you change all the instances of 648 to calling the windows screenHeight?

    //Grab the windows width and height.

    CGRect screenRect = [[UIScreen mainScreen] bounds];
    CGFloat screenWidth = screenRect.size.width;
    CGFloat screenHeight = screenRect.size.height;
    

提交回复
热议问题