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 7833119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:34:15+00:00 2026-06-02T12:34:15+00:00

In my application, a custom form is loaded into a UIWebView . Part of

  • 0

In my application, a custom form is loaded into a UIWebView. Part of the of the required information to be submitted is an image (which is required). How would I be able to add the image to the form before it is submitted.

As side question, would be easier to go the other way around and pull the form information into Objective-C objects and send everything through an NSURLConnection?

  • 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-06-02T12:34:17+00:00Added an answer on June 2, 2026 at 12:34 pm

    You can use any of the HTML editor (or coding it manually) to create the html file and insert the image(s)…. So, let’s say you have created a myhtmlfile.html and one image with the file called “image1.jpg”. You would include these two files (myhtmlfile.html and image1.jpg) in your bundle (added them to your project).

    And in Objective-C (iOS), you can use use the loadHTMLString method of the UIWebView like so:

    NSString *path = [[NSBundle mainBundle] pathForResource:@"myhtmlfile" ofType:@"html"];
    NSFileHandle *readHandle = [NSFileHandle fileHandleForReadingAtPath:path];
    NSString *htmlString = [[NSString alloc] initWithData: 
                                [readHandle readDataToEndOfFile] encoding:NSUTF8StringEncoding];
    
    [self.myWebView loadHTMLString:htmlString baseURL:[[NSBundle mainBundle] bundleURL]];
    

    Assuming myWebView is the instant of your UIWebView. The key here is that both the html file and the image file(s) needed to be in your main bundle.

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

Sidebar

Related Questions

I have a Django application which includes a custom model field (and accompanying form
I want to embed the native camera application into custom form. The RECT r
Within my web application I am using some custom validation for my form fields.
I'm going to precompile an asp.net application in my custom c# form. How do
For any custom dialog (form) in a WinForm application I can set its size
I have a WinForms application in which I want to be able to provide
I was trying to make a custom application form. I've added some control like
I have a forms directory inside my application directory with custom form php files
I have a form on my Java application which basically is to provide the
I have a Silverlight application which is a collection of form fields and buttons.

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.