Skip to content

poos/SXPopMenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PopMenu

create a popMenu(气泡菜单) for you app

!修改自https://github.com/liufengting/FTPopOverMenu 以适应工程,修改了箭头顶部的弧度

导入方法

pod 'SXPopMenu', '~>1.1.0'

pod 'SXPopMenu', '~>1.2.0'

调用

头文件#import "FTPopOverMenu.h"

精简了大量的方法,只留下了:

/**
 *  show method with SenderFrame with imageNameArray
 *
 *  @param senderFrame    senderFrame
 *  @param menuArray      menuArray
 *  @param imageNameArray imageNameArray
 *  @param doneBlock      doneBlock
 *  @param dismissBlock   dismissBlock
 
 */
+ (void) showFromSenderFrame:(CGRect )senderFrame
                    withMenu:(NSArray<NSString*> *)menuArray
              imageNameArray:(NSArray<NSString*> *)imageNameArray
                   doneBlock:(FTPopOverMenuDoneBlock)doneBlock
                dismissBlock:(FTPopOverMenuDismissBlock)dismissBlock;

.添加了不带箭头的pop方法

/**
 *  show method with SenderFrame with imageNameArray
 *
 *  @param senderFrame    senderFrame
 *  @param menuArray      menuArray
 *  @param imageNameArray imageNameArray
 *  @param doneBlock      doneBlock
 *  @param dismissBlock   dismissBlock
 
 */
+ (void)showNoneArrowFromSenderFrame:(CGRect)senderFrame
                            withMenu:(NSArray<NSString *> *)menuArray
                      imageNameArray:(NSArray<NSString *> *)imageNameArray
                           doneBlock:(FTPopOverMenuDoneBlock)doneBlock
                        dismissBlock:(FTPopOverMenuDismissBlock)dismissBlock;

1.1.0

注意1.1.0下边是tableView默认的横线,因为录制质量原因看不清楚

img

1.2.0

img

About

create a popMenu(气泡菜单) for you app

Resources

License

Stars

Watchers

Forks

Packages

No packages published