martinblampied/MBTwitterScroll


Recreate Twitter's profile page scrolling animation for UITableView and UIScrollViews.

License: MIT

Language: Objective-C

Keywords: animation, objective-c, twitter, uiscrollview, uitableview


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.

alt tag

Twitter: @martinblampied Version License Platform

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

Project Statistics

Sourcerank 6
Repository Size 156 KB
Stars 421
Forks 63
Watchers 18
Open issues 4
Dependencies 0
Contributors 2
Tags 1
Created
Last updated
Last pushed

Top Contributors See all

Martin Blampied Zac Lovoy

Packages Referencing this Repo

MBTwitterScroll
Recreate Twitter's profile page scrolling animation for UITableView and UIScrollViews.
Latest release 0.1 - Published - 421 stars

Recent Tags See all

0.1 February 08, 2015

Something wrong with this page? Make a suggestion

Last synced: 2016-11-24 15:59:48 UTC

Login to resync this repository