¡@

Home 

2014/10/15 ¤U¤È 10:13:03

iphone Programming Glossary: pullupview

iPhone projects needs “Pull-up to refresh” feature

http://stackoverflow.com/questions/7684441/iphone-projects-needs-pull-up-to-refresh-feature

Here's what I've been using First of all you have a view holding the Pull up to refresh message and assign it to pullUpView setFrame CGRectMake 0 tableView rectForFooterInSection 0 .origin.y tableView bounds .size.width pullUpView.frame.height.. it to pullUpView setFrame CGRectMake 0 tableView rectForFooterInSection 0 .origin.y tableView bounds .size.width pullUpView.frame.height Then you setup two delegate methods as below to track the dragging. void scrollViewDidScroll UIScrollView scrollView.. the dragging. void scrollViewDidScroll UIScrollView scrollView if scrollView.isDragging CGFloat thresholdToRelease pullUpView frame .origin.y scrollView bounds .size.height CGFloat thresholdToLoad thresholdToRelease pullUpView frame .size.height..