Swift-SpringTableHeader iOS弹性头部视图组件

想给你的 iOS 应用加点弹性效果?Swift-SpringTableHeader是个不错的选择,它为你了一种简洁的方式,在UITableView或者UICollectionView的头部加上弹簧回弹的动画效果。这个组件基于UIScrollViewCore Animation框架,能够让你轻松地实现头部视图的扩展、收缩,甚至带有自然的回弹感觉。你只需要实现几个方法,比如scrollViewDidScroll(_ scrollView),计算滚动的距离,就能轻松调节视图的位置。

如果你想为你的应用增加点动态感和互动性,这个组件挺好用的,尤其适合像新闻类、电商类这种需要展示分类栏或者标题栏的场景。实现起来也不难,调整下弹簧的阻尼、初速度,动画效果就能大不相同,给用户带来不一样的体验。值得注意的是,SpringTableHeader还支持 Auto Layout 和 Size Class,确保在各种设备和方向下都能完美适配。

如果你正打算为项目引入这种动效,不妨试试这个组件,代码简单易懂,效果也比较流畅!

zip
swift-SpringTableHeader是一个非常基础的UIScrollView的头部弹性视图.zip 预估大小:21个文件
folder
SpringTableHeader-master 文件夹
file
bgColor.gif 103KB
folder
SpringTableHeader 文件夹
file
ViewController.m 2KB
folder
Classes 文件夹
file
SpringTableHeaderView.h 811B
file
SpringTableHeaderView.m 3KB
file
Info.plist 1KB
file
main.m 338B
file
1.jpeg 26KB
folder
Base.lproj 文件夹
file
LaunchScreen.storyboard 2KB
file
Main.storyboard 3KB
file
ViewController.h 219B
file
AppDelegate.h 281B
folder
Assets.xcassets 文件夹
folder
AppIcon.appiconset 文件夹
file
Contents.json 2KB
file
Contents.json 62B
file
AppDelegate.m 2KB
file
LICENSE 1KB
file
README.md 820B
folder
SpringTableHeader.xcodeproj 文件夹
folder
project.xcworkspace 文件夹
folder
xcshareddata 文件夹
file
IDEWorkspaceChecks.plist 238B
file
contents.xcworkspacedata 162B
file
project.pbxproj 14KB
file
.gitignore 1KB
file
scale.gif 248KB
zip 文件大小:361.68KB