Added continuous callback block for sliding. #103

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@zdavison
Contributor

Allows you to hook into the sliding to provide a continuous callback, useful for synchronized animations, as follows:

self.slidingViewController.continuousBlock = ^(float x){
    self.view.backgroundColor = [UIColor colorWithWhite:x/self.view.bounds.size.width alpha:1];
  };
@enriquez
Member

This is neat!

The problem is that it is only called while panning. It doesn't get called when tapping buttons that cause an anchor or reset.

@enriquez
Member

Merged e6fed49

@enriquez enriquez closed this Sep 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment