YBPopupMenu
1.0.0
Podfile
中加入pod 'YBPopupMenu'
后pod install
即可样式 | 图例 |
---|---|
YBPopupMenuArrowStyleCurve 默认 |
|
YBPopupMenuArrowStyleStraight |
dismissAllPopupMenu
方法,方便一键隐藏所有popupMenu[self updateUI]
方法YBPopupMenuAnimationStyleScale
和 YBPopupMenuAnimationStyleFade
两种,可自定义YBPopupMenuPriorityDirection
属性,可以设置箭头的第一优先级方向,当将要超过屏幕时会自动反转方向rectCorner
属性,可以自定义圆角(当反转时会自动镜像的反转圆角)NSAttributedString
titles
,images
,tableView
,minSpace
等等YBPopupMenuPriorityDirectionLeft
/YBPopupMenuPriorityDirectionRight
/YBPopupMenuPriorityDirectionNone
时需手动设置arrowPosition
来设置箭头在该行的位置#import "YBPopupMenu.h"
[YBPopupMenu showAtPoint:p titles:TITLES icons:nil menuWidth:110 otherSettings:^(YBPopupMenu *popupMenu) {
popupMenu.dismissOnSelected = NO;
popupMenu.showShadow = YES;
popupMenu.delegate = self;
popupMenu.offset = 10;
popupMenu.type = YBPopupMenuTypeDark;
popupMenu.rectCorner = UIRectCornerBottomLeft | UIRectCornerBottomRight;
popupMenu...;
}];
xcode7.0+
如果您在使用本库的过程中发现任何bug或者有更好建议,欢迎 @issues 我或联系本人email [email protected]