WkWebViewViewController.h 662 Bytes
Newer Older
曹云霄's avatar
曹云霄 committed
1 2 3 4 5 6 7 8 9 10
//
//  WkWebViewViewController.h
//  Lighting
//
//  Created by 曹云霄 on 2016/11/24.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "BaseViewController.h"

11

12
typedef void(^ReturnContentHeight)(CGFloat height);
13
@interface WkWebViewViewController : BaseViewController
曹云霄's avatar
曹云霄 committed
14 15

@property (nonatomic,strong) UIWebView *contentWebView;
16
@property (nonatomic,copy) ReturnContentHeight contentHeight;
曹云霄's avatar
曹云霄 committed
17 18 19 20 21 22 23 24 25 26 27 28
@property (nonatomic,copy) NSString *htmlString;

/**
 初始化

 @param htmlString HTML字符串
 @param block      返回content Height
 */
- (instancetype)initWithReturnContentSize:(void(^)(CGFloat contentHeight))block;


@end