Skip to content

Commit 95370f3

Browse files
committed
PhotoBrowser
1 parent 66aff07 commit 95370f3

5 files changed

Lines changed: 155 additions & 205 deletions

File tree

Coding_iOS/Vendor/MJPhotoBrowser/MJPhotoBrowser.h

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,14 @@
1010
#import "BaseViewController.h"
1111

1212
@protocol MJPhotoBrowserDelegate;
13-
@interface MJPhotoBrowser : BaseViewController <UIScrollViewDelegate>
14-
// 代理
15-
@property (nonatomic, weak) id<MJPhotoBrowserDelegate> delegate;
13+
@interface MJPhotoBrowser : NSObject <UIScrollViewDelegate>
1614
// 所有的图片对象
1715
@property (nonatomic, strong) NSArray *photos;
1816
// 当前展示的图片索引
1917
@property (nonatomic, assign) NSUInteger currentPhotoIndex;
20-
18+
// 保存按钮
2119
@property (nonatomic, assign) NSUInteger showSaveBtn;
2220

2321
// 显示
2422
- (void)show;
25-
+ (void)showHtmlMediaItems:(NSArray *)items originalItem:(HtmlMediaItem *)curItem;
26-
@end
27-
28-
@protocol MJPhotoBrowserDelegate <NSObject>
29-
@optional
30-
// 切换到某一页图片
31-
- (void)photoBrowser:(MJPhotoBrowser *)photoBrowser didChangedToPageAtIndex:(NSUInteger)index;
3223
@end

0 commit comments

Comments
 (0)