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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:58:44+00:00 2026-05-26T02:58:44+00:00

In UIWebView, how can I find a number (there’s no other numbers or text

  • 0

In UIWebView, how can I find a number (there’s no other numbers or text on the page, just one number in the centre) and then use that as an NSString to make a UILabel show that number?

EDIT: The code of the webpage (around the number):

<div style="width: auto; padding:0px; height: auto;" class="ajax_qe" id="ajax_qe_200139_1"><iframe id='qe_logFrm_200139'     
instance='1' class='frog3_enabled' style='display:none;'></iframe><div id="np_200139-1" class="brick s_php_eval" type="PHP"     
dfid=""></div><div id="np_200139-2" class="brick s_addspace" type="Blank Space" dfid=""><div style="overflow: hidden; font-size: 
0px; width: 100%; height: 5px; "></div></div><div id="np_200139-3" class="brick s_text" type="Text and Pictures" dfid=""><table 
border=0 cellspacing=0 cellpadding=0 width='100%' class='alt_200139'><tr><td><P align=center><STRONG><FONT color=#5dd228 
size=4>8</FONT></STRONG></P></td></tr></table></div><div class="page_marker" id="edit_link_200139_1" style="display: block; 
width:; height:;"><a class="edit_link rootpage" style="display: block;" href="#" onclick="qe_login(200139, 0); return false;" 
title="Edit this Page"><img src="/sysimages/editfullpage.gif" style="border: none;" /></a></div><div style="clear: both"></div>
</div><div id="r3603" style="position: relative;text-align: center;width: 100%;"><div style="z-index: 11;position: 
static;display: inline;">Powered by <a class=ROLLOVER href="http://www.frogteacher.com/" target=_blank><B>Frog</B></A></div>

Thanks.

  • 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-26T02:58:45+00:00Added an answer on May 26, 2026 at 2:58 am

    If the HTML that you are parsing always stays the same (except your number, obviously) you could use something like this:

    NSString* yourNumber;
    NSScanner *htmlScanner =  [NSScanner scannerWithString:yourHtmlString];
    
    [htmlScanner scanUpToString:@"<FONT color=#5dd228 size=4>" intoString:NULL];
    [htmlScanner scanString:@"<FONT color=#5dd228 size=4>" intoString:NULL];
    
    [htmlScanner scanUpToString:@"</FONT>" intoString:&yourNumber];
    

    You can than parse the yourNumber however you like.

    If, on the other hand, the HTML will differ significantly, I would use the MWFeedParser to parse, but this is a rather heavyweight solution.

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

Sidebar

Related Questions

I know how to use UIWebView and can invoke a WebView if it is
Outside of a UIWebView, how can I make a phone number clickable that is
I've read up on UIWebView and can't find a specific answer to whether or
Where can I find a simple compilable example on how to create and use
I have an app, that has a wall, in which there can be text
I've looked quite a lot but can't find a good text rendering solution. In
In OS3.1.3, I can create 6 UIWebView in a single view to watch 6
Is it possible to open the .xlsx file on UIWebView . I can't open
i want to convert my webpage(displayed in UIWebView) contents in pdf file. which can
In iOS, how can I call an Objective-C method from Javascript in a UIWebView

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.