CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✗ |
| LangLanguage | Obj-CObjective C |
| License | MIT |
| ReleasedLast Release | Jun 2015 |
Maintained by Mateusz Szklarek.
Twitter: @SzklarekMateusz Linkedin: Mateusz Szklarek E-mail: [email protected]
The repository allows you to achieve the effect similar to one that you’ve probably seen on Twitter App.
All you need is:
MSTwitterSplashScreen to your ViewController.m<MSTwitterSplashScreen/MSTwitterSplashScreen.h>@property (strong, nonatomic) MSTwitterSplashScreen *splashScreen;MSTwitterSplashScreen
MSTwitterSplashScreen *twitterSplashScreen = ...You need to provide 3 parameters:
bézierPath
backgroundColor or topColor and bottomColor for background with gradient
logoColor
... = [[MSTwitterSplashScreen alloc] initSplashScreenWithBezierPath:bezierPath
backgroundColor:backgroundColor
logoColor:logoColor];
... = [[MSTwitterSplashScreen alloc] initSplashScreenWithBezierPath:bezierPath
backgroundWithGradientFromTopColor:topColor
bottomColor:bottomColor
logoColor:logoColor];
splashScreen.durationAnimation = 1.8f;splashScreen to view as subview[self.view addSubview:splashScreen];and assign it to property
self.splashScreen = splashScreen;startAnimation in viewDidAppear:(BOOL)animated
- (void)viewDidAppear:(BOOL)animated
{
[self.twitterSplashScreen startAnimation];
}You can integrate MSTwitterSplashScreen with your project using Cocoapods. Add the following line to your *.podfile. I recommend you to use the latest version which is still being developed.
You can install the library using CocoaPods. To do so, you will need to add one of the following lines to your Podfile:
pod 'MSTwitterSplashScreen', '~> 1.0.6'
Which creates dependency for version >= 1.0.6 and < 1.1
For most recent or exact development version (not recommended on production):
pod 'MSTwitterSplashScreen', :git => 'https://github.com/mateuszszklarek/MSTwitterSplashScreen.git', :tag => 'v1.0.6'
Pod is a simple modification of an existing pod CBZSplashView which I needed for one of my ongoing projects. Thanks a lot to Callum Boddy for giving me a possibility to modify his pod.
The MIT License (MIT) - check included LICENSE file