Bootstrap移动导航栏链接转到URL而不是toogle

时间:2015-04-30 04:46:54

标签: jquery css3 twitter-bootstrap jquery-mobile

我有一个引导导航栏链接,可以在悬停时打开子菜单,并在单击时转到href。那很完美。问题在于移动导航栏。这些链接成为切换按钮,不会转到href链接。我需要它们在点击时转到href,仅在点击插入符号时切换。

可以看到导航栏here

1 个答案:

答案 0 :(得分:0)

将此添加到您的document.ready

NSNotificationCenter.defaultCenter().addObserver(self, selector: Selector("moviePlayerLoadStateDidChange"), name: MPMoviePlayerLoadStateDidChangeNotification, object: nil)

func moviePlayerLoadStateDidChange() {
    let loadState = moviePlayerController?.loadState

    if loadState == MPMovieLoadState.Unknown {
        moviePlayerController?.contentURL = currentmovieURL
        moviePlayerController?.prepareToPlay()
    }
}