I a uiimage that I use as cover photo, and I want to use the scroll view to pull down and enlarge but I want the top of the image to stay on top:
and this is the method:
- (void)scrollViewDidScroll:(UIScrollView *)scrollView;{
CGFloat offset = scrollView.contentOffset.y;
offset = offset + 54;
if (offset < 0 && offset > -25) {
_coverImageView.frame = CGRectMake(offset, 0,320 + (-offset) * 2, 150 + (-offset));
}
NSLog(@"%f", offset);
}
tnx