jsfu / jsdropdownmenu Goto Github PK
View Code? Open in Web Editor NEW类似美团的下拉菜单
License: MIT License
类似美团的下拉菜单
License: MIT License
加在table的SectionHeader上的,点击不见了,发现CGPoint touchPoint = [paramSender locationInView:self];这个方法拿到的point的y值是个负的
就是在选中某一项的时候我想把所有选中项都设置为默认选中项;
再设置一遍 dataSource 就可以刷新了,但是这样会重新绘制 界面
CALayer个性化太麻烦了 希望能换成图片接口
可读性、定制性,改也改不动,到处都在设置UI,记录选中的行不用个变量来保存,要通过对比Layer的字符串来判断,OMG,好蠢的做法
例子:快速连点同一个标题3次,本应该是显示列表,但是没有显示出来
解决方法:修改 animateBackGroundView
和 animateLeftTableView
两个方法
···
[UIView animateWithDuration:0.2 animations:^{
view.backgroundColor = [UIColor colorWithWhite:0.0 alpha:0.0];
} completion:^(BOOL finished) {
if (!_show) { // 加上这个判断
[view removeFromSuperview];
}
}];
···
···
} completion:^(BOOL finished) {
if (leftTableView && !_show) {// 加上这个判断
[leftTableView removeFromSuperview];
}
if (rightTableView && !_show) {// 加上这个判断
[rightTableView removeFromSuperview];
}
}];
···
我将遇到的问题写在了这个工程里面,两个控制器一个是正确的形式,一个是错误的形式。想请教下这里的事件响应为什么会被父控件处理掉。谢谢。这是工程链接https://github.com/tangzzz-fan/testUseSDWebImage.git
所需的data从网络获取的,获取新数据后如何reloadData
need help
如题所示
jsfu 老师你好,我看到您的JSDropDownMenu菜单写的很好,可以实现大多数功能,可是我现在项目有一个需求,在左边需要显示一个列表,在右边需要一个collectionView 并且右边的collectionView需要有一个分组有header 那么这样的情况我想问问用您的控件可以实现么
在iphone5上。标题显示不完整
你好! 不知道你们发现没有呀,如题所述问题.模糊感,感觉怪怪的.是不是字体被压缩还是放大了?求支援...
我在tableView的headerViewForSection上添加下拉菜单,我实现了数据源和代理方法,但是点击下拉菜单的选项时,选项没有反应,此时点击却被菜单下一层的tableView捕捉了,我在黑色蒙层上滑动,依然只能够对tableView操作,此时点击tableView的组头上的选项是有反应的。
同样,我在viewController的View中添加一个UIView放dropdownMenu,和另一个tableView,此时,菜单能正常弹出并进行交互。
能不能看一下?
新加入列时选中红✔️不会跟着选择的项还是停留在默认项
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.