【发布时间】:2016-05-20 11:03:25
【问题描述】:
我需要调用UIScrollViewDelegate方法我不知道如何创建UnsafeMutablePointer对象。
let pointer:UnsafeMutablePointer<CGPoint> = CGPoint(x: 0, y: 1) as! UnsafeMutablePointer<CGPoint>
self.scrollViewWillEndDragging(self.collectionView, withVelocity: CGPoint(x: 0, y: 1), targetContentOffset: pointer)
func scrollViewWillEndDragging(scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer<CGPoint>)
{
//Some code here
}
【问题讨论】:
标签: ios xcode swift scrollview