Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6915205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:26:46+00:00 2026-05-27T09:26:46+00:00

My app displays a number of html files through a webview for information purposes.

  • 0

My app displays a number of html files through a webview for information purposes. The user selects which file they need from a tableView. This code has worked well for over eighteen months now but I’m now getting the above error with certain html files. The code used is –

NSString *path = [[NSBundle mainBundle] pathForResource:@"opening_times" ofType:@"html"];
NSURL *url = [NSURL fileURLWithPath:path];

The strange thing is that all files use the same code but only three out of twelve are not working. Also the code works when I use an emulator but crashes when I run the app on my phone. I’m not sure what ‘Invalid CFStringRef’ refers to but it only applies to certain files.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:26:46+00:00Added an answer on May 27, 2026 at 9:26 am

    I would expect an encoding problem in the HTML file. For instance, if you created the HTML file on Windows, it may have assigned a “code page” that iOS can’t decode. Make sure that all of your files are UTF8-encoded.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a backbone.js app that displays a number of forms to the user.
I made an app which is just working fine. It displays the number of
in my app I am displaying number strings and noticed that 7.000444 displays as
I am developing an app, which display number of books fetched from the server
In my app, the user can choose to display any number of objects onto
This app displays a form with a textbox where the user is supposed to
My app displays a list of albums and I would like the user to
When my website/web app displays a picture, I need to allow the users to
I have an app that executes and displays reports from SSRS retrieved through URL
My Django app displays data from a database. This data changes without user intervention,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.