TweetbotとKickstarterforiOSは、バナー画像のあるユーザープロファイルに優れた機能を使用しています。画像をプルダウンするとtableView
、画像がズームします。
私はそれを以下を使用して部分的に機能させています、それは画像の高さを変更しますが、奇妙なことに、幅ではありません:
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
UIImageView *imageView = (UIImageView *)self.tableView.tableHeaderView;
CGFloat y = -scrollView.contentOffset.y;
imageView.frame = CGRectMake(0, scrollView.contentOffset.y, self.cachedImageViewSize.size.width+y, self.cachedImageViewSize.size.height+y);
NSLog(@"%@", NSStringFromCGRect(imageView.frame));
}
この効果を再現する方法を知っている人はいますか?