Get UIScrollView to scroll to the top. Scrollview移動指定位置

(scrollview, setContentOffset)

如果想要按按鈕後,
透過Scrollview製作之畫面自動移動到指定的位置
(最上方or最下方or某個位置)

可以參考本文

scrollview增加setContentOffset設定值

若設定contentOffset(CGPoint),可移動至指定至位置

--

--