IOS: Pull-up refresh, drop-down loading

Source: Internet
Author: User

Framework Download: http://download.csdn.net/detail/u013243469/8501599

#import "MJREFRESH.H"//Build refresh control [self Setuprefresh]; #pragma mark-Refresh control-(void) setuprefresh{    //1. Drop-down Refresh ( Enter refresh state to invoke Self's headerrereshing)//    [Self.tableview addheaderwithtarget:self Action: @selector (headerrereshing) ];    DateKey is used to store refresh time, which guarantees different refresh times for different interfaces    [Self.tableview addheaderwithtarget:self action: @selector ( headerrereshing) datekey:@ "unique identification"];       2. Pull up load more (enter refresh state to invoke Self's footerrereshing)    [Self.tableview addfooterwithtarget:self action: @selector ( footerrereshing)];       [Self.tableview headerbeginrefreshing];} Drop-down Refresh trigger Method-(void) headerrereshing{    //Stop drop-down status    [_tableview headerendrefreshing];} Pull-up load trigger Method-(void) footerrereshing{    //Stop pull-up status    [_tableview footerendrefreshing];}


IOS: Pull-up refresh, drop-down loading

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.