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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T22:35:18+00:00 2026-06-14T22:35:18+00:00

My app is a simple blog app. I parse an XML, and build custom

  • 0

My app is a simple blog app. I parse an XML, and build custom HTML code from the parsed parts, and load that HTML into a webview. Not everyone has the same quality of vision, so I am trying to add simple buttonsto add or decrease the font size. Currently, the HTML may look like:

font size=5 The Title…/font font size = 3 The body of text…/font

What I would like to do is take whatever number is listed, and increase or decrease by 1.

Any suggestions on how I can take just those 2 numbers (don’t want to increase other numbers that may be in body of article) and increase or decrease incrementally?

  • 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-14T22:35:19+00:00Added an answer on June 14, 2026 at 10:35 pm

    I’d recommend stuffing the HTML you parsed out of the XML into a “NSMutableString” object and then hunt through the mutable string object looking for the ranges of all substrings that match the pattern “font size=“.

    Once you find those ranges, you should be able to get the font sizes and then put them into a “NSInteger” via something like [NSString integerValue] which you can then increment and put back into the mutable string object. Obviously there’s some extra detail I’m not thinking too hard about, like how to replace a “9” in the mutable string with a “10” or to tell the difference between a font size of “10” and one that’s “100“. But at least this should be a good start for you.

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

Sidebar

Related Questions

I have one simple app that suppose to get information from user and send
Let's say I have the simple rails blog app. And I have a custom
I've got a simple app that parses Tumblr blog templates. It's modeled after their
I have a simple Rails 3 blog app that needs an admin user so
Hy guys. I've created a simple blog app with the usual CRUD actions. I've
I developed one Simple app, which contains one textview.and my problem is that I
I have a simple app with a full screen UIWebView. This contains HTML generated
I have a simple app that will allow a user to tag a location.
I'm making a simple blog Rails app and am trying to output links to
I am creating a simple blog app and so far I have 3 tables,

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.