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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:03:21+00:00 2026-05-26T03:03:21+00:00

How to develop an iPhone app using its webviewer? Like in Andriod we can

  • 0

How to develop an iPhone app using its webviewer?
Like in Andriod we can develop an app using webviewer.

It will help me in developing mobile app using Javascript.

Please NOTE:- I want to keep the core logic JS FILE of APP “inside” the phone only. I don’t want to host my application and redirect the user any where.

EDIT:- I want to develop a mobile application using HTML,CSS and Javascript. I want to keep my APP LOGIC inside the phone only.

  • 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-26T03:03:22+00:00Added an answer on May 26, 2026 at 3:03 am

    Yes in iOS you can use UIWebView to display any HTML content, HTTP links etc. You could also invoke javascript from your Objective C code or vice versa…

    HTML data –

       NSString *html = @"<html><head><title>Should be half</title></head><body>I wish the answer were just 42</body></html>";  
        [webView loadHTMLString:html baseURL:nil];
    

    To evaluate javascript from ObjectiveC code –

    NSString *title = [webView stringByEvaluatingJavaScriptFromString:@"document.title"];  
    

    This technique is not limited to one-liners, or accessing simple properties. Here’s an example of two lines of JavaScript code executed in order, as you would expect:

    [webView stringByEvaluatingJavaScriptFromString:@"var field = document.getElementById('field_2');" "field.value='Multiple statements - OK';"];
    

    You can also call JavaScript functions this way. And if you want to call a JavaScript function that does not already exist in the web page that you’re downloading, you can “inject” it yourself with this technique:

    [webView stringByEvaluatingJavaScriptFromString:@"var script = document.createElement('script');"
                             "script.type = 'text/javascript';"
                             "script.text = \"function myFunction() { "
                                "var field = document.getElementById('field_3');"
                                "field.value='Calling function - OK';"
                             "}\";"
                             "document.getElementsByTagName('head')[0].appendChild(script);"];
    
    [webView stringByEvaluatingJavaScriptFromString:@"myFunction();"];
    

    Check out – Javascript in UIWebView

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

Sidebar

Related Questions

I am trying to develop an iPhone app using PhoneGap and jQuery Mobile. This
I am trying to develop a iphone app by using cocos2d. I create a
I would like to develop a MS paint like app for the iPhone. Could
Is there any possible to develop the Iphone App using Eclipse IDE in Windows?
I am beginner to iPhone application. I am going to develop the app using
Can any one please suggest me the way to develop the Mobile sites .We
I'm using MonoTouch (monoDevelop 2.6) to develop an iPhone app. I've created an iPhone
I'm using XCode 4 to develop an application that can be run on iPhone
I am using the old facebook iphone sdk to develop a iphone app: https://github.com/megastep/facebook-iphone-sdk
i'm trying to develop my first simple app for iphone using the MapKit. I'm

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.