[iOS]add check for html url getting article name

This commit is contained in:
Kirill Zhdanovich 2013-08-09 01:15:36 +03:00
parent 87b4adc2f1
commit 90ff72d44f

View file

@ -88,7 +88,8 @@
else
v = [self.navigationController.viewControllers objectAtIndex:0];
NSRange r = [str rangeOfString:@"." options:NSBackwardsSearch];
self.navigationItem.title = [v getArticleName:[str substringToIndex:r.location]];
if (r.length && [[str substringFromIndex:r.location + 1] isEqualToString:@"html"])
self.navigationItem.title = [v getArticleName:[str substringToIndex:r.location]];
[self.webPages addObject:str];
if ([self isImage:str])
self.webView.scalesPageToFit = YES;