YBPopupMenu
1.0.0
pod 'YBPopupMenu'
to Podfile
and then pod install
style | legend |
---|---|
YBPopupMenuArrowStyleCurve | |
YBPopupMenuArrowStyleStraight |
dismissAllPopupMenu
method to facilitate hiding all popupMenu with one click[self updateUI]
methodYBPopupMenuAnimationStyleScale
and YBPopupMenuAnimationStyleFade
, which can be customizedYBPopupMenuPriorityDirection
attribute, which can set the first priority direction of the arrow and automatically reverse the direction when it is about to exceed the screen.rectCorner
attribute, which allows you to customize the rounded corners (inverted rounded corners that will be automatically mirrored when inverted)NSAttributedString
titles
, images
, tableView
, minSpace
, etc.YBPopupMenuPriorityDirectionLeft
/ YBPopupMenuPriorityDirectionRight
/ YBPopupMenuPriorityDirectionNone
, you need to manually set arrowPosition
to set the position of the arrow in the line#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+
If you find any bugs or have better suggestions while using this library, please feel free to @issues me or contact me via email [email protected]