ios - Reposition UIPrintInteractionController on rotate -
i using uiprintinteractioncontroller
display print options inside of application.
currently presents using presentfromrect:inview:animated:completionhandler:
method. works great , positions print options perfectly.
when rotate device, arrow moves incorrect position , print controller view moved (along x axis exact).
this happens both orientations, worse portrait landscape. if helps, popover stays positioned on y axis should.
i have tried couple options including recalling presentfromrect:inview:animated:completionhandler:
in didrotatetoorientation
, method:
- (void)popovercontroller:(uipopovercontroller *)popovercontroller willrepositionpopovertorect:(inout cgrect *)rect inview:(inout uiview *__autoreleasing *)view
this has worse effect, print options disappear entirely. also, uiprintinteractioncontroller
nsobject
, somehow behind scenes apple somehow puts popover controller.
any ideas on do?
Comments
Post a Comment