i have my refreshcontroller
with a scrollview
..
self.refreshControl = UIRefreshControl()
self.refreshControl.attributedTitle = NSAttributedString(string: "Frissítéshez húzzad! :)")
self.refreshControl.addTarget(self, action: "refresh:", forControlEvents: UIControlEvents.ValueChanged)
self.scrollView.addSubview(refreshControl)
func refresh(sender:AnyObject)
{
//my refresh code here..
self.refreshControl.endRefreshing()
}
I'm adding as a subview
to a scrollView
. It's working when the page content is overflowing
the screen. but the issue arise when i haven't received much data and it's not overflowing
, the pull and refresh
function is not working. :(
I'm not using tableview
.
Can anybody help me how to solve this problem?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…