A custom circular UIButton which has a progress border indicator. It is designed to animate an array of images while indicating the progress. You can set the speed of the image animation and change the appearance of the button. The example shows how the button can be used while sending a tweet.
Example Style 1 | Example Style 2 |
---|---|
Installing with CocoaPods
If you're unfamiliar with CocoaPods there is a great tutorial here to get you up to speed.
- In Terminal navigate to the root of your project.
- Run 'touch Podfile' to create the Podfile.
- Open the Podfile using 'open -e Podfile'
- Add the pod
TTProgressButton
to your Podfile.
pod 'TTProgressButton'
- Run
pod install
. - Open your app's
.xcworkspace
file to launch Xcode and start using the control!
Installing manually from GitHub
- Download the
TTProgressButton.h
,TTProgressButton.m
,UIImage+Alpha.h
andUIImage+Alpha.m
files from the Source folder and add them to your Xcode project. - Download the
TwitterBird_1-6
files from the Assets folder and add them to your Xcode project. #import TTProgressButton.h
wherever you need it.- Follow the included sample project to get started.
TTProgressButton is available under the MIT license. See the LICENSE file for more info.