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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:01:13+00:00 2026-05-15T22:01:13+00:00

I want to design an app that needs user to input few things like

  • 0

I want to design an app that needs user to input few things like start date, end date, bunch of other options and some text comments for which I am planning to use pickers to select the data that will slide up modally. I will need to move the view up and down to make sure that the element being filled stays in focus when the pickers and keyboard slides up and down.

My question is what would be the best view to implement such a “form”? I was thinking grouped table view where I could separate the fields section wise.

Is there any other way to implement these things?
By experience or best practices, are there any better alternatives or sample code or apps out there that I can explore?

Dev.

  • 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-15T22:01:14+00:00Added an answer on May 15, 2026 at 10:01 pm

    The most iPhone-like interface for forms is going to be a grouped table view. It is what most users will expect, after using other apps which use grouped table views for adding and editing structured data.

    A good practice is to create an enum (enumeration) for sections and for rows within sections, e.g.:

    typedef enum {
        kFormSectionFirstSection = 0,
        kFormSectionSecondSection,
        kFormSectionThirdSection,
        kFormSections
    } FormSection;
    
    typedef enum {
        kFormFirstSectionFirstRow = 0,
        kFormFirstSectionSecondRow,
        kFormFirstSectionRows
    } FormFirstSectionRow;
    
    ...
    

    In this example, you can use this enumeration to refer to sections by name instead of number.

    (In practice, you probably wouldn’t use kFormSectionFirstSection as a descriptive name, but something like kFormSectionNameFieldSection or kFormSectionAddressFieldSection etc., but this should hopefully illustrate the structure of the enum.)

    How would you use this?

    Here’s an example of a few table view delegate methods which demonstrate how this is useful:

    - (NSInteger) numberOfSectionsInTableView:(UITableView *)tableView {
        return kFormSections;
    }
    
    - (NSInteger) tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        switch (section) {
            case kFormSectionFirstSection:
                return kFormFirstSectionRows;
    
            case kFormSectionSectionSection:
                return kFormSecondSectionRows;
    
            ...
    
            default:
                break;
        }
        return -1;
    }
    
    - (UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
        // cell setup or dequeue...
    
        switch (indexPath.section) {
            case kFormSectionThirdSection: { 
                switch (indexPath.row) {
                    case kFormThirdSectionFourthRow: {
    
                        // do something special here with configuring 
                        // the cell in the third section and fourth row...
    
                        break;
                    }
    
                    default:
                        break;
                }
            }
    
            default:
                break;
        }
    
        return cell;
    }
    

    This should quickly show the utility and power of enumerations.

    Names in code are much easier to read than numbers. When you’re dealing with delegate methods, if you have a good descriptive name for a section or a row, you can more easily read the logic of how the table view and cells are managed.

    If you want to change the order of sections or row, all you have to do is rearrange the order of enumerated labels in the enum construct. You wouldn’t need to go into all the delegate methods and change magic numbers, which quickly becomes a tricky and error-prone dance once you have more than a couple sections and rows.

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

Sidebar

Related Questions

That's my question, I want design all the interface of my application within an
I am making an app that needs to be able to share stories to
I want to design a web page with a banner and an iframe. I
Say I want to design a database for a community site with blogs, photos,
I am new to this. I want to design an image gallery in my
How do I send an SMS to Active Directory Users. I want to design
I am new to C# and .NET programming. I want to design an application
I want to see if anyone has a better design for a class (class
You and I want to be the expert on computer programming or website design,
I'm trying to design an XML document structure for my application. I want to

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.