我在找这样的一个类似的实现:https://github.com/umano/AndroidSlidingUpPanel 但是对于iOS。目前我有一个带有UITableView的ViewController。我重写此方法,这样我就可以扩大自来水名单:iOS滑动UITableView
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
print("selected: \(indexPath.row)")
self.view.layoutIfNeeded()
UIView.animateWithDuration(1, animations: {
self.mTableViewTopConstant.constant = 200
self.view.layoutIfNeeded()
})
}
我现在想是这样的:如果列表扩大,滚动位置是在顶部,当我移动了我的手指(快速扫)列表中,列表应该折叠。另外,如果可能的话,当我移动手指时,该列表应该遵循我的指示。我深入研究了UIScrollViewDelegate,但是我没有找到在滚动列表时触发的方法。有没有?
这是你的意思吗?或者我理解你错了吗? –
谢谢,会检查出来。 –