0

我正在使用 ruby​​gem 气泡包装,无法找到如何使其隐藏或不可见。太感谢了。

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

1 回答 1

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
于 2013-09-11T17:29:37.187 回答