subinspathilettu / SJSegmentedViewController

MIT License
334 stars 126 forks source link

header view not Scrolling From View Controller #69

Closed pothirajp closed 6 years ago

pothirajp commented 7 years ago

Hi Bro:

i am using SJSegmentedViewController. its good lib. easy to work.

Thank You.

Isuue is When i scroll from view controller the header view is not scrolling. If i scroll Header view its scrolling fine.

Can u give the solution ?

subinspathilettu commented 7 years ago

@pothirajp I believe you need to use https://github.com/subinspathilettu/SJSegmentedViewController#customize-your-view

takaishota commented 7 years ago

@subinspathilettu It's better to change args of viewForSegmentControllerToObserveContentOffsetChange function in README. I didn't notice this change for a while, when not working correctly in latest version.

func viewForSegmentControllerToObserveContentOffsetChange(controller: UIViewController,
    index: Int) -> UIView {

->

func viewForSegmentControllerToObserveContentOffsetChange() -> UIView {

Hope this helps.

subinspathilettu commented 6 years ago

@takaishota Thanks for notifying me. Updated the README.