Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Paddy O'Brien committed Aug 15, 2012
1 parent 35627c3 commit d7eb97c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions PXParallaxViewController/PXParallaxViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,29 @@


@interface PXParallaxViewController : UIViewController <UIScrollViewDelegate>
/**
* The scrollview that contains the content
*/
@property (nonatomic, readonly) UIScrollView *contentScrollView;

/**
* The scrollview that contains the parallax View
*/
@property (nonatomic, readonly) UIScrollView *parallaxScrollView;

/**
* The view to be shown with the parallax effect
*/
@property (nonatomic, strong) UIView *parallaxView;

/**
* The content view that obscures the parallax view
*/
@property (nonatomic, strong) UIView *contentView;

/**
* The visible height of the parallax view at rest
*/
@property (nonatomic, assign) CGFloat parallaxHeight;

- (id)initWithContentView:(UIView *)contentView andParallaxView:(UIView *)parallaxView;
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,9 @@ the content scrollview use delegate methods to update the offsets but will forwa
delegate methods is you set its delegate, currently this done a bit clumsily, I may revise
this later using a bit of runtime manipulation.

TODO:
-----
- There are some constants borrowed from RBParallaxTableViewController that might better
be computed properties for this kind of implementation.

[1]: https://github.com/Rheeseyb/RBParallaxTableViewController

0 comments on commit d7eb97c

Please sign in to comment.