gltwy / ltscrollview Goto Github PK
View Code? Open in Web Editor NEWScrollView嵌套ScrolloView(UITableView 、UICollectionView)解决方案, 支持OC / Swift(持续更新中...)实现原理:http://blog.csdn.net/glt_code/article/details/78576628
License: MIT License
ScrollView嵌套ScrolloView(UITableView 、UICollectionView)解决方案, 支持OC / Swift(持续更新中...)实现原理:http://blog.csdn.net/glt_code/article/details/78576628
License: MIT License
在 iPhone X 下,tableview 的高度超出 managerView 34个点
滑块底部线一般都是直角的,但是我的项目需求是圆角的,没有相应的api更改滑块底部线的属性
cocoapods拉取的,继承于LTPageTitleView时报错:Cannot inherit from non-open class 'LTPageTitleView' outside of its defining module
假设我在第一个页面 上做拉操作, 然后切换到第二个页面 稍微往下拉一点 headerView 出现一点 在切回第一个页面 第一个页面tableview又回到了顶部
子VC中的scrollView是webView的时候,由于web内容需要请求才能回来,导致contentInsect设置时机错开,稍微滚动web页面内容的时候,整个界面自动滚动到顶部,还有部分错位现象。
如果LTAdvancedTestOneVC不止有上面tableView,在tableView的正上方还有一个View,位置应该如何处理,直接在LTAdvancedTestOneVC.view上添加一个view,会显示不出来
就是现在点击标题的话太生硬了,是否能够点击标题,指示器滑动有动画
LTTableViewProtocal 名字是不是有点问题 LTTableViewProtocol ?
如题,在private func setupTitleSelectIndex(_ btnSelectIndex: Int)这个方法里mainScrollView为空
某些情况下,需要重新修改headerView的frame。
The target “LTScrollView” contains source code developed with Swift 2.x. Xcode 9 does not support building or migrating Swift 2.x targets.
Use Xcode 8.x to migrate the code to Swift 3.
我的Xcode的是9.4版本。
我在点击和滑动的时候希望要保持原来的y偏移位置不变,我需要怎么修改呢,现在是我每次点击和滑动都会将我的y的偏移量设置为头部view的高
您好,进阶版-刷新控件在中间这个类型,给tableview的头视图后,第一个title对应的页面偏移量有问题,但是其他title对应的没问题,能指点一下是什么原因造成的么,谢谢
LTPageView切换标签时会有出现一段空白一闪而过,如何解决这个问题?
您好,想请问一下,标题栏如果想增加自定义button的话该如何兼容,比如想在标题栏的右侧增加一个按钮
如果添加WebView,当WebView内容变化,导致contentSize变化时,会有手势冲突!!!
[!] Unable to find a specification for LTScrollView
pod 安装成功
但仍出现多个警告:
Use of undeclared type 'LTLayout'
Use of undeclared type 'LTAdvancedManager'
Use of undeclared type 'LTAdvancedScrollViewDelegate'
Pods
是否可以增加headerView
的布局方式
目前是两种headerView
固定方式
headerView
下方headerView
上方headerView
上下进行固定关于tabbar颜色过度
+ (UIColor *)colorFromColor:(UIColor *)fromColor toColor:(UIColor *)toColor progress:(CGFloat)progress {
progress = MIN(progress, 1.0f);
CGFloat fromRed = fromColor.red;
CGFloat fromGreen = fromColor.green;
CGFloat fromBlue = fromColor.blue;
CGFloat fromAlpha = fromColor.alpha;
CGFloat toRed = toColor.red;
CGFloat toGreen = toColor.green;
CGFloat toBlue = toColor.blue;
CGFloat toAlpha = toColor.alpha;
CGFloat finalRed = fromRed + (toRed - fromRed) * progress;
CGFloat finalGreen = fromGreen + (toGreen - fromGreen) * progress;
CGFloat finalBlue = fromBlue + (toBlue - fromBlue) * progress;
CGFloat finalAlpha = fromAlpha + (toAlpha - fromAlpha) * progress;
return [UIColor colorWithRed:finalRed green:finalGreen blue:finalBlue alpha:finalAlpha];
}
博主是否有对饿了么
App商家界面的那种布局方式有过了解?界面有两个tableView
这种布局。
设置isClickScrollAnimation 为 true 后
调用scrollToIndex: 时
滑块动画异常。
具体表现为:
滑块有一个快速闪动的异常。
你好,怎么做到每次点击title滑块的时候,都刷新对应的控制器数据,我发现对应的控制器视图viewWillAppear:(BOOL)animated这个方法都只执行了一次,有什么方法能够点击就能够走对应控制器里的方法(通知除外)
尝试设置simplemanager的hoverY属性,但是还是有一点小问题,当滚动到分栏垂直位置一半的时候松手,view会自动滚下来把分栏露出来,必须把分栏全部滑出去页面才不会自动滚动。
暂时没提供,你可以尝试桥接解决
大神,我需要在标题上右上角加入圆形的消息数,怎么弄?
The “Swift Language Version” (SWIFT_VERSION) build setting must be set to a supported value for targets which use Swift. This setting can be set in the build settings editor.
我按照你的方式添加的MJ的刷新控件,为什么有些界面自动调用下拉刷新的时候会缩进去一部分,然后搭配DZNEmptyDataSet使用的时候会强制把我的collectionView撑到和屏幕一样大是为什么?
public let glt_iphoneX = (UIScreen.main.bounds.height == 812.0) 这样的写法是否太危险?iphone X Plus出来后样式肯定不兼容了
作者您好,您的demo非常好,已经Star。
但是在使用过程中遇到一个UI适配的问题,在 0.1.7版本 第三个案例《下拉放大-导航渐变》 在iPhone X上面tableview最后一行显示不出来。能否在您方便的时候更新一下?
期待您的回复
内容视图 滑动到边界的时候 怎么加入回弹效果,就是scrollview 的 bounce这个属性
我头部插入了一个UISegmentedControl,现在想点击UISegmentedControl时候,进行切换,该怎么处理,老大
下面的子试图滑动的时候没有没有完整的执行下面代码
//- (void)viewWillAppear:(BOOL)animate
//- (void)viewDidAppear:(BOOL)animated
//- (void)viewWillDisappear:(BOOL)animated
//- (void)viewDidDisappear:(BOOL)animated
我想把悬停那头部高度设为1 layout.sliderHeight = 1 但是为啥不行
关于swift会让项目api包变大,所以项目关闭了SWIFT
如果自控制器的tableView 有sectionheaderview,会卡在页面中间
设置标题后,后面怎么修改呢
_managerView = [[LTSimpleManager alloc] initWithFrame:CGRectMake(0, TOP_SPACE, self.view.bounds.size.width, SCREEN_H-TOP_SPACE-BOTTOM_H+2) viewControllers:self.viewControllers titles:self.titleArr currentViewController:self layout:self.layout];
要修改titles
作者大大您好!非常感激您写出这套LTScrollView帮我解决了多个scrollView嵌套的老大难问题!我目前在使用0.1.8版本的时候出现了一点小问题:
1、页面底部左右滑动时会出现horizontalIndicator;
2、页面底部有一个整个容器cell的分割线(距screen.left 15px)。
查询您的源码发现分别是这两个view导致的:
1、LTSimpleManager的tableView的separatorStyle并没有设置成.none;
2、LTPageView的scrollView的showHorizontalIndicator属性并没有设置成false。
但是我翻阅您的源码并没有找到能够不污染源码来设置这两个属性的方式,希望得到您的指引告诉我如果不污染源码的前提下来设置成我想要的样式,或者如果没有的话希望您在下一版本的迭代中可以考虑这个问题,谢谢!~
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.