当前位置: 动力学知识库 > 问答 > 编程问答 >

objective c - QLPreviewController - Play video iOS 6

问题描述:

I'm using QLPreviewController to preview all kind of documents as well as video files. While trying to open a video file using that, it works fine with iOS 7 whereas with iOS 6, video playback controls are not showing up, only empty toolbar getting shown. Hence, unable to play a video in iOS 6.

This is the code which i'm using..

QLPreviewController *previewController=[[QLPreviewController alloc]init];

previewController.delegate=self;

previewController.dataSource=self;

[self addChildViewController:previewController];

previewController.view.frame = CGRectMake(0, 46, 768, 905);

previewController.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

[self.view addSubview:previewController.view];

Screenshots with iOS 6 & iOS 7

分享给朋友:
您可能感兴趣的文章:
随机阅读: