Comments (2)
暂时没有直接支持,因为需求多种多样,且选中的样式千奇百怪,众口难调,但实现你这个需求不需要改源码,
你可以自定义一个cell,定义好选中的样式等,定义一个变量index
- (UITableViewCell *)ybPopupMenu:(YBPopupMenu *)ybPopupMenu cellForRowAtIndex:(NSInteger)index
{
YBPopupCustomlTableViewCell * cell = [ybPopupMenu.tableView dequeueReusableCellWithIdentifier:@"cellID"];
if (!cell) {
cell = LoadNibNamed(@"cellID");
}
if (index == self.index) {
// 你的选中样式
} else {
...
}
return cell;
}
from ybpopupmenu.
感谢提供思路,我这个需求仅仅是想让选中Item的字体显示红色。我以源码形式导入了,在原来的基础上扩展了两个属性,已经解决。
from ybpopupmenu.
Related Issues (20)
- 貌似自定义Cell后,没法设置全圆角了,死循环了 麻烦看看... HOT 2
- cell两边的边距如何调整??现在的有点大 HOT 5
- YBPopupMenu没对iPad做适配 HOT 1
- 在-show方法中获取最后一个可见的cell有问题 HOT 1
- cell高度自适应的接口 HOT 2
- 死循环了怎么办 HOT 2
- How to dismiss menu programmatically? HOT 4
- 1、duration设置无效;2、选择YBPopupMenuAnimationStyleNone不能触发点击回调 HOT 2
- 设置为YBPopupMenuAnimationStyleNone ,点击没办法回调,设置其他模式可以回调 HOT 2
- 在 iOS13 以上的系统里,弹不出来 HOT 2
- 快速点击背景,menu的消失动画会重复执行多次 HOT 2
- 选择无动画的时候,不响应点击选项的代理 HOT 1
- Window问题 HOT 1
- menuBackView 遮罩层背景颜色无法自定义 HOT 2
- 崩溃问题
- 现在似乎只能通过类方法来创建使用 HOT 1
- 无法修改线条颜色 HOT 2
- 分屏
- 在底部弹出,箭头在左右两边,内容无法显示
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ybpopupmenu.