首頁>Club>
1
回覆列表
  • 1 # 嬌嬌的小天使

    SV_InfiniteView *view = [[SV_InfiniteView alloc] initWithFrame:CGRectMake(0.0, 0.0, 320.0, 50.0)];[self.tableView.infiniteScrollingView setCustomView:view forState:SVInfiniteScrollingStateAll];SV_InfiniteView:- (id)initWithFrame:(CGRect)frame{self = [super initWithFrame:frame];if (self) {UIImageView *logoImageView = [[UIImageView alloc] initWithFrame:CGRectMake(148.0, 13.0, 24.0, 24.0)];logoImageView.image = [UIImage imageNamed:@"loading"];[self addSubview:logoImageView];CABasicAnimation* rotationAnimation;rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];rotationAnimation.toValue = [NSNumber numberWithFloat: M_PI * 2.0];rotationAnimation.duration = 3.0;rotationAnimation.cumulative = YES;rotationAnimation.repeatCount = HUGE_VALF;[logoImageView.layer addAnimation:rotationAnimation forKey:@"rotationAnimation"];}return self;}

  • 2 # 軒哥956

    高度可擴充套件、自定義、多樣式的重新整理框架。

    1.引入標頭檔案2.初始化控制元件

    方式一

    方式二

    方式三 全域性配置

    3.手動觸發重新整理4.結束重新整理自定義

    以KafkaheadRefreshControl為例:

    *.m

  • 中秋節和大豐收的關聯?
  • 汝霖這個名字的意思?