Skip to content

ArchLL/HGPersonalCenter

Repository files navigation

HGPersonalCenter

Requirements

  • iOS 9.0+
  • Objective-C
  • Xcode 10+

Installation

我通过自己另一个支持CocoaPods的库快速集成 - HGPersonalCenterExtend

pod 'HGPersonalCenterExtend', '~> 1.3.2'

Blog

简书

Show

image

Usage

主要逻辑已经封装到HGNestedScrollViewController中,稍加改动即可将其添加到项目中使用,使用请参照HGPersonalCenterViewController

⚠️ 如果你的pageViewController下的scrollViewUICollectionView类型,需要进行如下设置:

// collectionView的内容不满一屏时,为了避免categoryView在吸顶后页面在竖直方向滑动失效,需要进行如下设置:
_collectionView.alwaysBounceVertical = YES;

温馨提示

当时为了实验不同导航栏框架的效果,在该项目中引入了GKNavigationBarViewController,但是这个第三方库对代码侵入性较高,还有一些bug未解决(比如:在我这个项目的场景下系统左滑操作失效,不得已我接入了FDFullscreenPopGesture来解决这个问题;左滑返回时,导航栏会闪屏).

所以不建议大家在自己的项目中使用GKNavigationBarViewController,推荐使用RTRootNavigationController,可以参考HGPersonalCenterExtend中的使用方法

Author

Arch, mint_bin@163.com

License

HGPersonalCenterExtend is available under the MIT license. See the LICENSE file for more info.

About

主要实现头部视图的下拉放大以及分页控制,同样的场景也适用于淘宝/天猫店铺界面/简书主页/微博主页

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published