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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T14:10:24+00:00 2026-06-03T14:10:24+00:00

OK here goes, This one i find complicated to explain, but I have attached

  • 0

OK here goes,

This one i find complicated to explain, but I have attached the project if you want to test it out what I am trying to say:-)

I have 1 app – 2 views.
1 UIWebView with a local html file with a form
1 ViewController with 2 buttons and 2 labels to interact with the view and then 2 labels that show the result when the buttons are pressed.

Now when I use the method stringByEvaluatingJavaScriptFromString and have set the content to import in the settings bundle I can only inject numbers, when I set letters in the settings app, they do not get injected. However when I inject it straight from the app there is no problem.

On the View Controller, I can retrieve both letters and numbers.

This would have me believe that the problem lies with the stringByEvaluatingJavaScriptFromString method.

Now I am not sure where the bug lies with this, because using that injection method and setting the letters or text in the ViewController works fine.

I need the webView, but when pulling content from the settings bundle it will only show the numbers in the textField. If you watch the console though, you will see that the letters and numbers are being recognized.

I am happy to give any additional details if I have left anything out.
Please if someone would be so kind to download the project and have a look, to see if what I am trying to say makes any sense, I would greatly appreciate that.

it is written with the 5.1 SDK

Kind Regards,
Jeff

Download Project

  • 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-03T14:10:27+00:00Added an answer on June 3, 2026 at 2:10 pm

    Ok, after pulling out all my hairs I have found the answer:

    %@", field01];
    

    I had the code above, but for some reason that only lets through numbers or maybe they are integers anyway, no letters are being let through, yet to a label they are.

    so I compared a hardcoded string to a dynamic string that I require and noticed that they hard coded string had the value between ‘ & ‘ so I put the %@ between those and it fixed the problem.

    so '%@'", field01]; fixed it all:-)

    Cheers

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

Sidebar

Related Questions

This may have been asked already, but I can't find it, so here goes.
Another identation-question but i didn't find this particular one anywhere so here goes. Is
This is probably a simple one to answer, but I'm stuck, so here goes.
This is very basic stuff , but here goes. I find that I am
I'm guessing this isn't possible, but here goes. I have two tables, and I'm
Basically, I want this sort of functionality but less complicated: http://www.blueacorn.com/team/ I have a
Ok here goes. This is my first ever wicket application and I'm trying to
Okay this is definitely a n00b question but here goes. The way I understand
Not sure if this is the correct Stack Exchange website but here goes.. A
Ok so this maybe a simple/silly question but I don't know so here goes:

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.