The whole iOS
version of Babel works in portrait mode, but since we implemented
attachments, we wanted to display attachment previews in landscape mode also.
We tried it at first with UIDocumentInteractionController, which is displayed
modally on UINavigationController.
So the whole
app is in portrait mode and only UIDocumentInteractionController is in both
portrait and landscape. It worked great, but when you at first turn the iphone
to landscape and then display UIDocumentInteractionController, you will see the
preview, but the navigation bar is missing. So you cannot get out of this
screen, in iOS 8, it looks like this:
In iOS 7, it's ok:
We tried using
QLPreviewViewController, but displaying it modally on UINavigationController
was the same. Then we tried to push it on the navigation stack with
pushViewController:animated and finally it worked on both iOS versions 7 and 8.
However there
is one issue with QLPreviewViewController that only occurs in iOS 8 (iOS7 is
ok). When you try to play some sound in this preview and turn to landscape,
then when you go back (dismiss QLPreviewViewController), the sound continues
playing. If you do the same thing in portrait, it stops playing.
Žádné komentáře:
Okomentovat