Coder Social home page Coder Social logo

ycxmenudemo_objc's Issues

userInfo 有什么用?

  • (instancetype)menuItem:(NSString *)title image:(UIImage *)image tag:(NSInteger)tag userInfo:(NSDictionary *)userInfo;
    我看一下源码 ,发现这个userInfo好像没用,这个userInfo有什么意义?

显示位置如何更改

我是一个IOS新手,在尝试做一个练手项目时,用到了你的代码 。
我把相关的代码拷进工程中后,按你所述的方式添加菜单 。一切都可以。但有一个问题。就是显示的位置不对。
我原想是像微信公众号一样。弹出来的子菜单在当前UIButtom的顶上出现。但目前它在信号栏的下面弹出来了。方向相反了。
我大致说下我的思路。
我用一个UIWebView定位在0,20,屏幕宽,屏幕高-50.的位置上。然后在UIWebView 下面添加一个UIView.在UIView里添加了三个UIButton。然后在UIButton的点击事件中,弹出菜单。这时候。位置就不对了。
相应的工程在我的github中的Benefit这个项目中。

建议

应该在选择item的时候增加点击后item背景颜色的接口 不然总是蓝色

字体颜色

希望能自己设置菜单中字体的颜色,现在默认是白色而且无法更改

遮罩层

请问修改遮罩层的颜色在哪里?
还有修改每个item的宽高?

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.