How do you change the UIRefreshControl beginRefresh height?

I have a UIRefreshControl coupled with a UITableView and it works fine except that I need a custom height for when the refresh is triggered. I tried the following:

refreshControl.addTarget(self, action: "showRefreshing", forControlEvents: UIControlEvents.ValueChanged)

func showRefreshing() {

    scrollView.setContentOffset(CGPointMake(0, -150), animated: true)

}

And it does reveal the extra space while refreshing, however there is a jitter while it does this. It isn't smooth at all and I am wondering if I'm missing an easy solution. I also tried changing the height of the refreshControl but it would still use the defaul offset height. Any ideas?

链接地址: http://www.djcxy.com/p/75418.html

上一篇: 如何使ScrollView内的TableView的滚动自然行为

下一篇: 你如何改变UIRefreshControl的beginRefresh高度?