列表使用系统的popover弹窗控制器,箭头指示错乱的问题

2020-03-12  本文已影响0人  提灯走夜路

列表使用系统的popover弹窗控制器,箭头指示错乱的问题

有可能是在点击列表中按钮弹出控制器前刷新了列表,导致列表的cell重新加载,由于cell是重用的,导致sourceView已经不是同一个按钮

        self.popoverPresentationController?.sourceView = sourceView;

        self.popoverPresentationController?.sourceRect = sourceView.bounds;

上一篇 下一篇

猜你喜欢

热点阅读