martinblampied/MBTwitterScroll
关于
Recreate Twitter's profile page scrolling animation for UITableView and UIScrollViews.
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文MBTwitterScroll
========== Recreate Twitter's profile page scrolling animation for UITableView and UIScrollViews. Librarys uses Core graphics framework and is based of thinkandbuild.it's swift tutorial converted into Obj-C.

Installation
From CocoaPods
MBTwitterScroll is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MBTwitterScroll"
Manually
Copy the source files MBTwitterScroll folder into your project.
Usage
Import the project
#import "MBTwitterScroll.h"
UITableView
To show animation on UITableVIew use the following code:
MBTwitterScroll *myTableView = [[MBTwitterScroll alloc]
initTableViewWithBackgound:[UIImage imageNamed:@"your image"]
avatarImage:[UIImage imageNamed:@"your avatar"]
titleString:@"Main title"
subtitleString:@"Sub title"
buttonTitle:@"Follow"]; // Set nil for no button
myTableView.delegate = self;
[self.view addSubview:myTableView];
UIScrollView
To show animation on UIScrollView use the following code:
MBTwitterScroll *myScrollView = [[MBTwitterScroll alloc]
initScrollViewWithBackgound:nil
avatarImage:[UIImage imageNamed:@"avatar.png"]
titleString:@"Main title"
subtitleString:@"Sub title"
buttonTitle:@"Follow" // // Set nil for no button
contentHeight:2000];
myScrollView.delegate = self;
[self.view addSubview:myScrollView];
License
MBTwitterScroll is free for all use available under the MIT license. See the LICENSE file for more information.
Feedback or feature request?
Any problems or features contact me at @martinblampied
探索相关项目
加载中…