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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:13:22+00:00 2026-05-22T16:13:22+00:00

i am developing an application where i need to take text input from user

  • 0

i am developing an application where i need to take text input from user using sectioned table view.
i had never use table view for taking text input from user.
please have a look at the image for batter understanding.

enter image description here

i tried this In-place editing of text in UITableViewCell?

but this is not full filling what i wanted to.

when i use following code i get output which is not similar to above image.

UITextField *txtField=[[UITextField alloc]initWithFrame:CGRectMake(45, 0, cell.frame.size.width, cell.frame.size.height)];
    txtField.autoresizingMask=UIViewAutoresizingFlexibleHeight;
    txtField.autoresizesSubviews=YES;
    [txtField setBorderStyle:UITextBorderStyleRoundedRect];
    [txtField setPlaceholder:@"Type Data Here"];

    if (cell == nil)
    {
        cell.accessoryType = UITableViewCellAccessoryNone;
    }
    [cell addSubview:txtField];

enter image description here

see the answer of question 3 and 5.

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-22T16:13:23+00:00Added an answer on May 22, 2026 at 4:13 pm

    you need to add UITextField to content view Corresponding cell, where you want the Text field.
    You select the cell you want by looking in to the cells indexpath.section and indexpath.row in cellForRowAtIndexPath:

    Example:

    if(indexPath.section == CELL_SECTION) {
        if(indexpath.row == CELL_ROW_INDEX) {
          UITextField *txtField=[[UITextField alloc]initWithFrame:CGRectMake(5, 5, 320, 39)];
          txtField.autoresizingMask=UIViewAutoresizingFlexibleHeight;
          txtField.autoresizesSubviews=YES;
          txtField.layer.cornerRadius=10.0;
          [txtField setBorderStyle:UITextBorderStyleRoundedRect];
          [txtField setPlaceholder:@"Type Data Here"];
          [cell.contentView addSubView:textField];
       }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an iPad application in which I need a table view (
i am developing one application with map view i need display the weather depends
I'm developing an application targeting .NET Framework 2.0 using C# for which I need
I am developing a desktop application that will need to collect data (from the
I am developing an iPhone application in which I need to use Facebook's FQL
I am developing an application and I will need to take measurements on different
I am developing a fairly process hungry application which I need to take an
I'm developing a web application and I need to mix Forms & Windows authentication
I'm developing an application where I the need to invoke a method of a
I am developing an application in asp.net mvc where i need to have Chat

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.