我使用下面的库来呈现一个视图控制器,它与原生的iOS音乐应用程序非常相似:https://github.com/LeoNatan/LNPopupController
我似乎无法向下拖拽模态控制器。我每次都要点击关闭按钮。我是从tabBarController上演示的。
let popupContentController = storyboard?.instantiateViewController(withIdentifier: "ModalViewController") as! ModalViewController
popupContentController.popupItem.accessibilityHint = NSLocalizedString("Double Tap to Expand the Mini Player", comment: "")
self.popupContentView.popupCloseButton.accessibilityLabel = NSLocalizedString("Dismiss Now Playing Screen", comment: "")
self.popupBar.barStyle = .prominent
self.popupInteractionStyle = .drag
self.popupContentView.popupCloseButtonStyle = .round
self.popupContentView.popupInteractionGestureRecognizer?.isEnabled = true
self.presentPopupBar(withContentViewController: popupContentController, animated: true, completion: nil)
self.popupBar.tintColor = appColors.darkBlack发布于 2018-02-18 09:10:34
回答如下:https://github.com/LeoNatan/LNPopupController/issues/218
另一个库将手势识别器添加到弹出内容控制器的视图中,这导致了冲突。
这样的冲突可以通过实现交互手势识别器代理并允许手势识别器之间的同时工作来解决。
https://stackoverflow.com/questions/48592817
复制相似问题