From e5573dd6a27e88c55381fadbc803019d066fe10a Mon Sep 17 00:00:00 2001 From: LucianoTurrini Date: Fri, 11 Sep 2015 15:50:43 -0300 Subject: [PATCH] Replacing URLWithString: by fileURLWithPath: --- .../UI/Onboarding/APCStudyOverviewCollectionViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/APCAppCore/APCAppCore/UI/Onboarding/APCStudyOverviewCollectionViewController.m b/APCAppCore/APCAppCore/UI/Onboarding/APCStudyOverviewCollectionViewController.m index afcc1399..3c342ea1 100644 --- a/APCAppCore/APCAppCore/UI/Onboarding/APCStudyOverviewCollectionViewController.m +++ b/APCAppCore/APCAppCore/UI/Onboarding/APCStudyOverviewCollectionViewController.m @@ -238,7 +238,7 @@ - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cell NSString *filePath = [[NSBundle mainBundle] pathForResource: studyDetails.detailText ofType:@"html" inDirectory:@"HTMLContent"]; NSAssert(filePath, @"Expecting file \"%@.html\" to be present in the \"HTMLContent\" directory, but didn't find it", studyDetails.detailText); - NSURL *targetURL = [NSURL URLWithString:filePath]; + NSURL *targetURL = [NSURL fileURLWithPath:filePath]; NSURLRequest *request = [NSURLRequest requestWithURL:targetURL]; [webViewCell.webView loadRequest:request];