0
正如在我的代碼中,當我添加hidesBarsOnSwipe
屬性時,我的左右滑動功能以某種方式被禁用並開始不起作用。如何讓他們同時工作?hidesBarsOnSwipe禁用左右滑動手勢
let leftSwipe = UISwipeGestureRecognizer(target: self, action: Selector("handleSwipes:"))
let rightSwipe = UISwipeGestureRecognizer(target: self, action: Selector("handleSwipes:"))
leftSwipe.direction = .Left
rightSwipe.direction = .Right
view.addGestureRecognizer(leftSwipe)
view.addGestureRecognizer(rightSwipe)
self.navigationController?.hidesBarsOnSwipe = true
嗨13日幽靈,它並沒有改變,在你的代碼hideBarsOnSwipe =假,我想使用的funcionality,所以我將它設置爲真,但是當我這樣做,左,右輕掃功能不起作用。 – saner