Authored by gaoqiang xu

优化代理方法

... ... @@ -107,7 +107,18 @@
*
* @param params 参数
*/
- (void)explorerDidDetectParameters:(NSDictionary * _Nonnull)params;
- (void)explorerDidDetectParameters:(NSDictionary * _Nonnull)params __attribute__((deprecated("Use `- explorer:didDetectParameters:` instead.")));
/**
@brief 获取页面的title
@param explorer explorer对象
@param params 参数
@since 1.1.0
*/
- (void)explorer:(YHExplorerViewController * _Nonnull)explorer didDetectParameters:(NSDictionary * _Nonnull)params;
/**
@brief 将要加载请求前的回调
... ...
... ... @@ -282,9 +282,14 @@ static float kprogressViewRadius = 2.0f;
- (void)parseFinishedWithResult:(NSDictionary *)result
{
if (self.delegate && [self.delegate respondsToSelector:@selector(explorerDidDetectParameters:)]) {
if ([self.delegate respondsToSelector:@selector(explorerDidDetectParameters:)])
{
[self.delegate explorerDidDetectParameters:result];
}
if ([self.delegate respondsToSelector:@selector(explorer:didDetectParameters:)]) {
[self.delegate explorer:self didDetectParameters:result];
}
}
#pragma mark - UIWebDelegate
... ...