Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kayanouriko committed Mar 8, 2017
1 parent 530e7d2 commit 76ae284
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ExReadViewer/QJTagMainViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,16 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
BOOL isExHentai = [[[NSUserDefaults standardUserDefaults] objectForKey:@"ehentaiStatus"] boolValue];
NSString *url = self.datas[indexPath.row][@"tagUrl"];
if (isExHentai) {
url = [url stringByReplacingOccurrencesOfString:@"e-hentai" withString:@"exhentai"];
}
else {
url = [url stringByReplacingOccurrencesOfString:@"exhentai" withString:@"e-hentai"];
}
QJTagViewController *vc = [QJTagViewController new];
vc.mainUrl = self.datas[indexPath.row][@"tagUrl"];
vc.mainUrl = url;
vc.tagName = self.datas[indexPath.row][@"tagName"];
[self.navigationController pushViewController:vc animated:YES];
}
Expand Down

0 comments on commit 76ae284

Please # to comment.