GithubHelp home page GithubHelp logo

Comments (2)

lyb5834 avatar lyb5834 commented on August 13, 2024

暂时没有直接支持,因为需求多种多样,且选中的样式千奇百怪,众口难调,但实现你这个需求不需要改源码,
你可以自定义一个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.

duoshankui avatar duoshankui commented on August 13, 2024

感谢提供思路,我这个需求仅仅是想让选中Item的字体显示红色。我以源码形式导入了,在原来的基础上扩展了两个属性,已经解决。

from ybpopupmenu.

Related Issues (20)

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.