0

In an iPad master-detail application (the master is an UITableViewController and the detail a QLPreviewController) whenever I present a view controller modally and then dismiss it, the QLPreviewController stops receiving touch events or at least reacting to them. So, it's no longer possible to zoom in or out, or "bouncing" an image/document currently being shown, even after another image/document is selected and shown.

Keep in mind that before presenting the view controller modally everything works as expected and it's possible to zoom in/out.

Anyone knows a possible solution for this weird problem?

EDIT: added that this happens after dismissing the view controller presented modally.

EDIT 2: if the presentation style is UIModalPresentationFormSheet, the problem does not occur. It seems to only occur with UIModalPresentationFullScreen.

lm2s
  • 388
  • 1
  • 7
  • 22

2 Answers2

1

Although not a solution for this problem, a workaround is to present the view controller as UIModalPresentationFormSheet instead of fullscreen.

lm2s
  • 388
  • 1
  • 7
  • 22
0

Yes that is expected behaviour.

When a ViewController is presented modally (I assume you are presenting something in a form sheet?), it prevents other view controllers receiving touch events.

The other alternative is to have a look at child view controllers as an alternative; but again, their touch events will take precedence over anything underneath.

Gavin Bunney
  • 1,240
  • 1
  • 12
  • 12
  • Is there an expected specific behaviour you are after? – Gavin Bunney Mar 04 '15 at 01:53
  • I forgot to add that this happens after the view controller has been dismissed. (I'm presenting it fullscreen, but I'll try to present it as sheet to see if it makes any difference.) – lm2s Mar 04 '15 at 08:39
  • If I present the view controller with UIModalPresentationFormSheet style, then the problem no longer happens. – lm2s Mar 04 '15 at 10:14