如何隐藏BubbleWrap媒体播放器?

时间:2013-09-10 19:04:52

标签: rubymotion

我正在使用rubygem气泡包装,无法找到隐藏或隐藏的方法。非常感谢你。

BW::Media.play(local_file) do |media_player|
  media_player.view.frame = [[10, 100], [100, 100]]
  view << media_player.view
end

1 个答案:

答案 0 :(得分:0)

由于您将视图作为子视图推送到UIViewController的视图中,只需执行以下操作:

BW::Media.play(local_file) do |media_player|
  media_player.view.frame = [[10, 100], [100, 100]]
  view << media_player.view
  @media_player = media_player
end

# ...
@media_player.view.removeFromSuperview