zoukankan      html  css  js  c++  java
  • IOS7上呈现IOS6的水滴刷新效果

    IOS7上呈现IOS6的水滴刷新效果  

     到了IOS7 发现自带的刷新 不再是 IOS6自带的水滴效果了 你是否怀念那IOS6的效果呢?
    哈哈,于是收集各方资料,整理编写一个属于自己的水滴刷新效果 呵呵
     集成简要代码如下
    _headView=[[HeadRefreshView alloc]initWithScrollView:_tableView pullText:@"下拉->获取新数据" refreshingText:@"J先生正在努力加载..."];
        _headView.teardropType=TeardropTypeHead;
        _headView.block=^(HeadRefreshView * head)
        {
            [head performSelector:@selector(endRefresh) withObject:nil afterDelay:3 inModes:[NSArray arrayWithObject:NSRunLoopCommonModes]];
        };
        [_tableView addSubview:_headView];

    pullDownpullUp

    还有一个特大号的加载提示 哈哈
     集成简要代码如下
    activityIndicator=[[WYActivityIndicatorView alloc]initWithFrame:self.view.bounds];
    // 是否显示中间的停止按钮    
         [activityIndicator mayStop:NO];
    // 是否开启动画
        [activityIndicator startAnimating];
        
        activityIndicator.textLabel.text=[NSString stringWithFormat:@"J先生->第%i行->loading...",row];
        activityIndicator.textLabel.textAlignment=NSTextAlignmentCenter;
        
        activityIndicator.stopButtonClickBlock=^(WYActivityIndicatorView *activityIndicatorView)
        {
            [activityIndicatorView stopAnimating];
        };

    loading
    下载地枝
    http://download.csdn.net/detail/langyuejing/6707183
    
    

  • 相关阅读:
    is 和 == 的区别,utf和gbk的转换,join用法
    python字典的整理信息
    poj分类
    cloud computing
    POJ1007 关于STL排序方法 动态数组的创建 和向量的使用
    math类
    研究生考试感想
    4.11
    重看设计模式 观察者模式
    子串计算 2010北京大学复试机试题
  • 原文地址:https://www.cnblogs.com/riasky/p/3473211.html
Copyright © 2011-2022 走看看