如何在tabbar控制器中播放视频 [英] how play video in tabbar controller

查看:85
本文介绍了如何在tabbar控制器中播放视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我拿一个标签栏点击视频按钮视频播放另一个视图控制器(自定义屏幕)

suppose am taking one tabbar am click the video button video play the another view controller(custom screen)

推荐答案

你可以轻松实现的playpack 的MPMoviePlayerController 。使用Interface Builder实现它并将按钮与一个控制所有的处理程序连接起来。



否则,但不太好:如果你想从另一个视图开始操作控制器你应该实现一个协议,并使用按钮将目标VC设置为VC的弱协议属性。
The playpack you can easiely achieve with the MPMoviePlayerController. Implement it with the Interface Builder and connect the button with a handler which controls all.

Else, but not so good: If you want to start the action from another view controller you should implements a protocol and set the target VC as weak protocol property to the VC with the button.


这篇关于如何在tabbar控制器中播放视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆