lts

LTSlidingViewController

sliding view controller allowing custom transition

Showing:

Popularity

Downloads/wk

0

GitHub Stars

124

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

LTSlidingViewController

Demo

LTSlidingViewController

LTSlidingViewController

Usage

Make your view controller extend LTSlidingViewController, in viewDidLoad:

self.animator = [[LTSlidingViewCoverflowTransition alloc] init]; // set the animator

UIViewController *vc1 = [self.storyboard instantiateViewControllerWithIdentifier:@"vc"];
UIViewController *vc2 = [self.storyboard instantiateViewControllerWithIdentifier:@"vc"];
UIViewController *vc3 = [self.storyboard instantiateViewControllerWithIdentifier:@"vc"];
    
[self addChildViewController:vc1];
[self addChildViewController:vc2];
[self addChildViewController:vc3];

Some useful methods you can call in your subclass controller:

- (void)scrollToPage:(NSInteger)page animated:(BOOL)animated;
- (void)removeAllChildViewControllers;
- (void)didScrollToPage:(NSInteger)page;
@end

And you can create custom transition by implementing LTSlidingViewTransition protocal:

@protocol LTSlidingViewTransition <NSObject>
- (void)updateSourceView:(UIView *)sourceView destinationView:(UIView *)destView withProgress:(CGFloat)progress direction:(SlideDirection)direction;
@end

See the example for details~

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100