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

  • SEARCH
  • Home
  • 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 6871157
In Process

The Archive Base Latest Questions

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

Possible Duplicate: Problem calling a Local HTML File from XCode I am using the

  • 0

Possible Duplicate:
Problem calling a Local HTML File from XCode

I am using the following code with my already existing UIWebView to call a local file into the UIWebView:

[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"iDHSB_iPod/Calendar" ofType:@"html"]isDirectory:NO]]];

However, when the button is pressed to carry out this function – I get this error:

2011-11-27 20:17:37.667 iDHSB[806:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** 
-[NSURL initFileURLWithPath:isDirectory:]: nil string parameter'
*** First throw call stack:
(0x37c598bf 0x3173f1e5 0x37c597b9 0x37c597db 0x31b014ff 0x31b01493 0x4b609 0x37bb3435 0x3502c9eb 0x3502c9a7 0x3502c985 
0x3502c6f5 0x3502d02d 0x3502b50f 0x3502af01 0x350114ed 0x35010d2d 0x3772edf3 0x37c2d553 0x37c2d4f5 0x37c2c343 0x37baf4dd 
0x37baf3a5 0x3772dfcd 0x3503f743 0x2e8b 0x28d4)
terminate called throwing an exception[Switching to process 7171 thread 0x1c03]
(gdb) 
  • 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-27T03:46:16+00:00Added an answer on May 27, 2026 at 3:46 am

    Judging by the error, [[NSBundle mainBundle] pathForResource:@"iDHSB_iPod/Calendar" ofType:@"html"] returns nil.

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

Sidebar

Related Questions

Possible Duplicate: Problem when loading php file into variable (Load result of php code
Possible Duplicate: What's wrong with Delphi's “with” I am have a problem debugging code
Possible Duplicate: problem with template inheritance This code doesn't compile in GCC: template <typename
Possible Duplicate: Java GUI repaint() problem? I write a Java code, but I have
Possible Duplicate: Solution to a recursive problem (code kata) give an algorithm to find
Possible Duplicate: WPF Button isPressed and isEnabled problem Here is a snippet of code
Possible Duplicate: Parse XML with Namespace using SimpleXML PHP SimpleXML Namespace Problem <?php header(Content-Type:
Possible Duplicate: problem sorting using member function as comparator Is it possible to use
Possible Duplicate: .Net Changes the element IDs I have the following problem (I'll explain
Possible Duplicate: XPATH problem with dom4j I am using dom4j to overwrite a value

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.