A cool way to animate the appearance of a label.
To use LazyFadeInView, create a
LazyFadeInViewand add it to your view. It will animate to show up once it's text is set.
An example of making a lazy fade in view:
LazyFadeInView *fadeInView = [[LazyFadeInView alloc] initWithFrame:CGRectMake(20, 120, 280, 200)]; self.fadeInView.text = @"Stray birds of summer come to my window to sing and fly away."; self.fadeInView.textColor = [UIColor whiteColor]; [self.view addSubview:self.fadeInView];
CocosPods is the recommended method to install LazyFadeInView, just add the following line to
pod 'LazyFadeInView', '~> 1.0.0'
pod install, then you're all done!
LazyFadeInView is available under the MIT license, see the LICENSE file for more information.