HJPresentListView - 彈出選擇菜單封裝:HJPresentListView

jopen 8年前發布 | 6K 次閱讀 iOS開發 移動開發 HJPresentListView

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

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!