我有一个引导导航栏链接,可以在悬停时打开子菜单,并在单击时转到href
。那很完美。问题在于移动导航栏。这些链接成为切换按钮,不会转到href
链接。我需要它们在点击时转到href,仅在点击插入符号时切换。
可以看到导航栏here
答案 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()
}
}