HJPresentListView - 弹出选择菜单封装:HJPresentListView

jopen 10年前

HJPresentListView - 弹出选择菜单封装,用起来非常非常简单

导航

导入头文件

#import "HJPresentListView.h"

遵循协议

@interface ViewController ()<HJPresentListViewDelegate>

实现协议方法:

仅一个必须实现的协议方法:

- (void)PresentListView:(UIView *)presentListView clickedButtonAtIndex:(NSInteger)buttonIndex;

两个可供调用的方法

- (void)show;
- (void)showInView:(UIView *)view;

以下是两个颜色模式的截图,大家也可以修改源代码获得到大家想要的结果

1、HJNormal

demo

1、HJOrange

demo

(更多iOS开发干货,欢迎关注 微博@3W_狮兄



项目地址: https://github.com/CoderHJZhao/HJPresentListView