Skip to content

UIView subclass that mimics the progress bar of Twitter for iOS.

License

Notifications You must be signed in to change notification settings

wdwen/THProgressView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THProgressView

UIView subclass that mimics the progress bar of Twitter for iOS

Screenshot

Installation

The preferred way is through CocoaPods. Just add the following line to your Podfile:

pod 'THProgressView', '~> 1.0'

You can also do it manually by dragging the contents of THProgressView/ into your project.

Usage

THProgressView is simply a UIView subclass so just instantiate it and add it a view hieararchy.

CGRect rect = ...
THProgressView *progressView = [[THProgressView alloc] initWithFrame:rect];
progressView.borderTintColor = [UIColor whiteColor];
progressView.progressTintColor = [UIColor whiteColor];
[progressView setProgress:0.5f animated:YES]; // floating-point value between 0.0 and 1.0

The sample project in /Demo contains a couple examples.

License

MIT License (c) Tiago Henriques

About

UIView subclass that mimics the progress bar of Twitter for iOS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 95.2%
  • Ruby 4.8%