YHExplorerView.h 1.34 KB
//
//  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