项目介绍:
FTPopOverMenu
https://github.com/liufengting/FTPopOverMenu
FTPopOverMenu
is a pop over menu for iOS
which is maybe the easiest one to use, supports both portrait
and landscape
. It can show from any UIView
, any UIBarButtonItem
and any CGRect
. Simplest APIs, enable you to change the style in one line of code.
FTPopOverMenu是iOS的一个弹出菜单,也许是最容易使用的一个,支持纵向和横向。 它可以从任何UIView,任何UIBarButtonItem和任何CGRect显示。 最简单的API,使您能够在一行代码中更改样式。
ScreenShots
Usage
Customize
Do any of the following settings to set the style (Only set the ones you want to change), maybe do this when app starts or when you want it to show a different style, but remember it’s global change.
FTPopOverMenuConfiguration *configuration = [FTPopOverMenuConfiguration defaultConfiguration];
configuration.menuRowHeight = ...
configuration.menuWidth = ...
configuration.textColor = ...
configuration.textFont = ...
configuration.tintColor = ...
configuration.borderColor = ...
configuration.borderWidth = ...
configuration.textAlignment = ...
configuration.ignoreImageOriginalColor = ...;// set 'ignoreImageOriginalColor' to YES, images color will be same as textColor