Git Product home page Git Product logo

jxpagingview's Issues

左右滚动pin headerview高度问题

@pujiaxin33 你好,使用了你的这个库解决了页面布局的一些问题,谢谢。
同时有个问题想请教,就是在左右滚动切换时,如果pin headerview需要动态的调整高度,如何处理?
如图,比如节目和生活下pin headerview是80,当切换到动态下时为45,这时候需要怎么调整一下?谢谢!

image

delegate问题

  • (CGFloat)tableHeaderViewHeightInPagerView:(JXPagerView *)pagerView
    这个代理 应该必须要传一个整数。不能属于自计算的。

缓存

有五个item,直接点击第五个,会看到中间的界面,如果有很多个item,会不会很占用内存

下载了,打不开

弹出Failed to load project at '/Users/goopai/Downloads/JXPagingView-master/JXPagingView.xcodeproj', incompatible project version.

hi

oc怎么用?继承还是push推出?

如果列表是collectionView时,滑动异常

大佬,如果列表是collectionView时,上滑到collectionView部门内容超出边界后( categoryView 悬浮停靠后继续上滑了一段距离), 往下滑时collectionView 的contentOffset的y值突然变为0,是什么原因呀?而且上下滑动时很容易左右滑动

屏幕边缘左滑手势

当tab非第一个时,屏幕边缘左滑手势无效,需要滑到第一个tab时才可以继续左滑返回。。。

由于多个scrollview的嵌套,点击statusBar不能正确的滚动到顶部

scrollView 属性:
open var scrollsToTop: Bool // default is YES.
注释是:
When the user taps the status bar, the scroll view beneath the touch which is closest to the status bar will be scrolled to top, but only if its scrollsToTop property is YES, its delegate does not return NO from -scrollViewShouldScrollToTop:, and it is not already at the top. On iPhone, we execute this gesture only if there's one on-screen scroll view with scrollsToTop == YES. If more than one is found, none will be scrolled.

// -------------------------------------------------------

首先非常感谢作者写了该开源项目,在实际的项目中节约了很多时间。

有一个问题:

如果子item也滚动到顶部的话,此时点击 status bar 是没有反应的,因为 mainTableView 和该 itemScrollView 的 scrollsToTop 都是true, 系统不知道处理哪一个了。希望题主可以把这个小issue加进去😄。

我在实际项目的处理方式是:

1 在 AppDelegate.swift 添加通知:

override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
    super.touchesBegan(touches, with: event)
    if let touch = touches.first {
        let statusBarHeight = xxxxxx
        if touch.location(in: nil).y > statusBarHeight {
            return
        }
        NotificationCenter.default.post(name: notificationName, object: nil)
    }
}

2 在相关的ViewController设置:

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    
    NotificationCenter.default.addObserver(self, selector: #selector(scrollToTopNoti), name: .notificationName, object: nil)
}

@objc private func scrollToTopNoti() {
    item0.scrollView.contentOffset = .zero
    item1.scrollView.contentOffset = .zero
    item2.scrollView.contentOffset = .zero
    
    pagingView.mainTableView?.scrollRectToVisible(topFrame, animated: true)
} 

这样处理以后点击status bar 就能正常滚动到顶部了,希望题主可以考虑一下怎样在pods实现类似的功能。

怎么判断当前是哪一个listview&其他的疑问?

  1. 如何判断当前是哪一个listview
    貌似你现在写的currentScrollingListView这个属性,需要在listview上下滑动一下才能知道.
- (void)listViewDidScroll:(UIScrollView *)scrollView {
    self.currentScrollingListView = scrollView;
    [self preferredProcessListViewDidScroll:scrollView];
}
  1. 跟第一个问题有点相关, 能不能弄一个回调,或者代理,告诉 滚到了第几个listview这个事件
    在你的uicollectionview的手指离开屏幕后的事件有个代理(scrollview的代理),貌似可以处理这个问题.

这种效果怎么实现。。

![Uploading IMG_1282.GIF…]
请问一下这个怎么实现,oc版demo中能加一个吗???或者说一下思路也行。。谢了。。。

自定义悬浮HeaderView的问题

@pujiaxin33 你好,先感谢你的这个库,写的挺好。。然后请教你个问题哈,就是我自定义了一个悬浮headerview,上面有2个按钮,我在切换俩按钮的时候怎么触发下面listview的切换,或者切换下面的listview怎么选中headerview上的某个按钮?谢谢!

使用哪个库的疑问

你好,感谢作者的开源,有几点小疑问:
1、如果我想使用带有头部高度可以改变的效果,只使用JXCategoryView可以吗,还是说需要JXCategoryView和JXPagingView一起pod进来
2、swift跟oc版本代码同步吗

demo中的小问题&一些建议

demo中需要改一下判断scrollCallback

 if(scrollView == self.tableView && self.scrollCallback){
        self.scrollCallback(scrollView);
    }

另外,对比其他的框架
我决定要是用你的框架,
类似的框架或多或少有些不足,
你的也有,不过少很多.

  1. listview如果能放在controller中初始化就好了,YNPageViewController中就是
  2. 尽量支持 autolayout

希望你做的更好~

5s 上的不能滚动

当头部视图的高度为小数时,在 ipone5s 模拟器上,listViews里面的滑动视图滚动不了

超出titleView 上面的按钮怎么相应点击事件???

simulator screen shot - iphone 8 plus - 2018-11-14 at 15 47 32
画红色圈圈的按钮,不相应点击事件,我已经做过

  • (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
    UIView *view = [super hitTest:point withEvent:event];
    if (view == nil) {
    for (UIView *subView in self.subviews) {
    CGPoint tp = [subView convertPoint:point fromView:self];
    if (CGRectContainsPoint(self.btnFollow.bounds, tp)) {
    view = self.btnFollow;
    } else if (CGRectContainsPoint(self.btnServe.bounds, tp)) {
    view = self.btnServe;
    } else if (CGRectContainsPoint(self.btnMore.bounds, tp)) {
    view = self.btnMore;
    } else if (CGRectContainsPoint(self.btnClose.bounds, tp)) {
    view = self.btnClose;
    }

      }
    

    }
    return view;
    }
    还是点击不到???请问问什么??

请问怎样点击状态栏滚动到顶部

设置了currentScrollingListView的scrollsToTop,但是只有HeaderView可见时才能滚到到顶部,滑动范围超过HeaderView的高度接不能滚到顶部了。
谢谢。

遇到一个刷新的问题

作者您好:
我在使用这个库的时候,在TestListView中设置刷新的时候,我想一进来就刷新一次,然后在点击title的时候也能够刷新,问题来了,在三个title的时候,点击中间的那个,会把第三个或者第一个也一起刷新了,虽然好像预加载了,但是我不需要这个功能该怎么解决?还望回复一下

动态PinSectionHeader高度问题

@pujiaxin33 请教个问题,就是点击切换不同标签选项时,pageView reloadData后高度变短了,出现了黑边。如图,点击节目时PinSectionHeader=80然后再切换回来点击了动态PinSectionHeader=45,分别设置PinSectionHeader后,pageView reloadData后出现了黑边。。

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.