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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:25:26+00:00 2026-06-10T03:25:26+00:00

I’m creating an iPhone app and I need the ability to dynamically create a

  • 0

I’m creating an iPhone app and I need the ability to dynamically create a “form” where a user can input data. For example, suppose I was making the Dominoes Pizza app where you can order pizza through a in-app “form”. This form has different section headings (Pizza, Pasta, Salad…etc) different “radio button” like options (Meat pizza, cheese pizza…etc) and some condition options (for example, you might only see options for pizza toppings if you have selected the pizza checkbox). My app will be similar to that, with a form with many checkboxes, radio buttons, drop downs…etc.

My question is what would be the best way to store the information used to dynamically create such a form? My requirements are that it be easy to change (say cheese pizzas now cost $2 more) and it should be able to be changed by a person with limited programming experience.

My first instinct would be to use XML such as this:

<Item>Pizza</Item>
    <Type>Dropdown List</Type>
    <Cost> $5.0 </Cost>
    <Option> Cheese Pizza </Option>
    <Option> Pepperoni Pizza </Option>
    <Option> Meat Pizza </Option>
<Item>Salad</Item>
    <Type>Radio Buttons</Type>
    <Cost> $2.0 </Cost>
    <Option> Yummy Salad </Option>
    <Option> Icky Salad </Option>

Having this file in my app, I could then just parse this and whenever I see a “Radio button” type, create a radio button and whenever I see a “Drop down list” create a drop down list. The only issue with this is it may make it difficult to make conditional options such as only show salad item if the use has already selected a pizza.

Is this the most appropriate technology to use for this case? XML? Note that I don’t want it to strictly be a web app because I want to be able to use Objective-C objects such as “UISegmentedControl”.

  • 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-10T03:25:27+00:00Added an answer on June 10, 2026 at 3:25 am

    Yes, XML is definitely a good choice. You should also consider using JSON. Generate the information on your web service, encode it using JSON, download the JSON string within the app, then parse and save the string.

    Once you have the data in the app, I would use a UITableView to dynamically create the form. The datasource of a UITableView is a NSArray, which is really easy to get from a XML or JSON parse.

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

Sidebar

Related Questions

I need to clean up various Word 'smart' characters in user input, including but
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Specifically, suppose I start with the string string =hello \'i am \' me And
In my XML file chapters tag has more chapter tag.i need to display chapters
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

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.