Article written by

3 Responses

Page 1 of 1
  1. Nat A.
    Nat A. at |

    I really like the tutorial! I got everything to work great, but I am making a universal app and I was wondering if you could tell me how to make your code work on the iPad as well? Thanks for a wonderful tutorial! 

  2. Bill Spivey
    Bill Spivey at |

    I'm mostly getting good result from the method described here, but am concerned about warning messages rec'd on the console.   One says "WARNING: Calling – [UIPintInteractionController presentAnimated:completionHandler:] on iPad.   The next one says: -[UIPopoverController presentPopoverFromRect:inView:permittedArrowDirections:animated:]: the rect passed in to this method must have non-zero width and height.   This will be an exception in a future release.
    Here is the code I'm using to invoke the pic:
     
     
    UIPrintInteractionController *pic = [UIPrintInteractionController sharedPrintController];
        UIPrintInfo *printInfo = [UIPrintInfo printInfo];
        printInfo.outputType = UIPrintInfoOutputGeneral;
        pic.printInfo = printInfo;
        pic.printFormatter = [myWebPage viewPrintFormatter];
        [pic presentAnimated:NO completionHandler:completionHandler];

  3. Lee
    Lee at |

    Good tutorial. Simple and to the point. Thanks for posting.

Please comment with your real name using good manners.

Leave a Reply


*

%d bloggers like this: