YHExplorerView.h
1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// YHExplorerView.h
// YohoExplorerDemo
//
// Created by gaoqiang xu on 3/2/15.
// Copyright (c) 2015 gaoqiang xu. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "YHExplorerViewController.h"
@interface YHExplorerView : UIView
<YHExplorer>
/**
* 网页交互代理(包含UIWebView的代理)
*/
@property (weak, nonatomic) IBOutlet id <YHExplorerDelegate> delegate;
@property (nonatomic) BOOL enableProgressBar;
/*
* Explorer的tap手势 默认NO
* 开启后可以处理图片点击事件
*/
@property (nonatomic) BOOL enablePictureTapGesture;
/*
* 给Explorer的tap手势添加一个区域控制(根据id获取)
* 1. id在`constraintIdsForPictureTapGesture`中的element认为是有效区域
* 2. 如果nil,不设置限定
*/
@property (strong, nonatomic) NSArray<NSString*> *constraintIdsForPictureTapGesture;
/*
* 给Explorer的tap手势添加一个区域控制(根据class获取)
* 1. class为`constraintClassesForPictureTapGesture`中的element认为是有效区域
* 2. 如果nil,不设置限定
*/
@property (strong, nonatomic) NSArray<NSString*> *constraintClassesForPictureTapGesture;
@property (weak, nonatomic) UINavigationBar * currentNaviBar;
- (UIWebView *)webView;
- (instancetype)initWithFrame:(CGRect)frame withNaviBar:(UINavigationBar *)naviBar;
/**
* 移除滚动条
*/
- (void)removeProgress;
@end