Showing
2 changed files
with
18 additions
and
2 deletions
@@ -107,7 +107,18 @@ | @@ -107,7 +107,18 @@ | ||
107 | * | 107 | * |
108 | * @param params 参数 | 108 | * @param params 参数 |
109 | */ | 109 | */ |
110 | -- (void)explorerDidDetectParameters:(NSDictionary * _Nonnull)params; | 110 | +- (void)explorerDidDetectParameters:(NSDictionary * _Nonnull)params __attribute__((deprecated("Use `- explorer:didDetectParameters:` instead."))); |
111 | + | ||
112 | +/** | ||
113 | + @brief 获取页面的title | ||
114 | + | ||
115 | + @param explorer explorer对象 | ||
116 | + @param params 参数 | ||
117 | + | ||
118 | + @since 1.1.0 | ||
119 | + */ | ||
120 | +- (void)explorer:(YHExplorerViewController * _Nonnull)explorer didDetectParameters:(NSDictionary * _Nonnull)params; | ||
121 | + | ||
111 | /** | 122 | /** |
112 | @brief 将要加载请求前的回调 | 123 | @brief 将要加载请求前的回调 |
113 | 124 |
@@ -282,9 +282,14 @@ static float kprogressViewRadius = 2.0f; | @@ -282,9 +282,14 @@ static float kprogressViewRadius = 2.0f; | ||
282 | 282 | ||
283 | - (void)parseFinishedWithResult:(NSDictionary *)result | 283 | - (void)parseFinishedWithResult:(NSDictionary *)result |
284 | { | 284 | { |
285 | - if (self.delegate && [self.delegate respondsToSelector:@selector(explorerDidDetectParameters:)]) { | 285 | + if ([self.delegate respondsToSelector:@selector(explorerDidDetectParameters:)]) |
286 | + { | ||
286 | [self.delegate explorerDidDetectParameters:result]; | 287 | [self.delegate explorerDidDetectParameters:result]; |
287 | } | 288 | } |
289 | + | ||
290 | + if ([self.delegate respondsToSelector:@selector(explorer:didDetectParameters:)]) { | ||
291 | + [self.delegate explorer:self didDetectParameters:result]; | ||
292 | + } | ||
288 | } | 293 | } |
289 | 294 | ||
290 | #pragma mark - UIWebDelegate | 295 | #pragma mark - UIWebDelegate |
-
Please register or login to post a comment