I'm trying to create Parallax scrolling effect using 2 UIScrollView This should be easy, I have a detail scrollView and a Parallax scroll view on top. I delegated the Detail ScrollView to my ViewController. Then, on the ScrollViewDidScroll Method I try to change the offset of the parallax Scrollview. In the beginning i tried to calculate the percentage of the offset that the Detail scrollView had, and then apply in to the parallax scrollView. This didn't work, so i simplified the process by changing the offset of the parallax scrollView to static offset - but this is also not working!! Here is my code -
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
[parallexView setContentOffset:CGPointMake(110, -110)];
}
When i try to change other property of the parallax scrollView such as backgoundColor - it works
Please help guys (:
Aucun commentaire:
Enregistrer un commentaire