zoukankan      html  css  js  c++  java
  • UIRefreshControl的使用

    注意:

    1、需要在ios6.0之后的版本中使用

    2、UIRefreshControl目前只能用于UITableViewController,如果用在其他ViewController中,运行时会错误(即UIRefreshControl只能被UITableViewController管理)

     

    UIRefreshControl类如下所示,东西不多

    NS_CLASS_AVAILABLE_IOS(6_0) @interface UIRefreshControl : UIControl
    
    /* The designated initializer
     * This initializes a UIRefreshControl with a default height and width.
     * Once assigned to a UITableViewController, the frame of the control is managed automatically.
     * When a user has pulled-to-refresh, the UIRefreshControl fires its UIControlEventValueChanged event.
     */
    - (id)init;
    
    @property (nonatomic, readonly, getter=isRefreshing) BOOL refreshing;
    
    @property (nonatomic, retain) UIColor *tintColor UI_APPEARANCE_SELECTOR;
    @property (nonatomic, retain) NSAttributedString *attributedTitle UI_APPEARANCE_SELECTOR;
    
    // May be used to indicate to the refreshControl that an external event has initiated the refresh action
    - (void)beginRefreshing NS_AVAILABLE_IOS(6_0);
    // Must be explicitly called when the refreshing has completed
    - (void)endRefreshing NS_AVAILABLE_IOS(6_0);
    
    @end

    使用介绍:http://www.devdiv.com/iOS_iPhone-ios_uirefreshcontrol_-thread-127741-1-1.html

  • 相关阅读:
    常见问题
    查询
    多对多关系
    prototype & __proto__
    new operator
    用户
    express.Router
    Express 应用生成器
    LeanCloud
    npm常用命令
  • 原文地址:https://www.cnblogs.com/ios-wmm/p/3300755.html
Copyright © 2011-2022 走看看